I inserted a link to a page in TinyMCE and {localLink:n} is made. But it was not replaced by the actual link. The version is 7.0. Did I overlook something?
I solved this problem. The inserted link was "href="/umbraco/{localLink:1086}" for some reason though I didn't change it manually. I deleted "/umbraco" and it worked!
OK, so I did the following.
Create a class with the following code.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Umbraco.Web;
namespace tr.client.web.Extensions
{
public static class UmbracoHelperExtensions
{
public static string ParseInternalLinks(this UmbracoHelper umbraco, IHtmlString text)
{
var html = text.ToString().Replace("/umbraco/", "/");
return Umbraco.Web.Templates.TemplateUtilities.ParseInternalLinks(html);
}
}
}
I just did a fresh install of 7.0.4 today and I have the same problem. Using the RTE I insert a link and select an internal page to link to. The HTML includes the /umbraco/ folder in the path so the link is not rendered properly. I see this issue was supposed to be corrected in 7.0.1, but I downloaded 7.0.4 today.
I just upgraded from 7.1.1 to 7.1.9 and this problem exists in both versions. However, the /Umbraco/ prefix in the path has been removed. Now the link is in the format: <a title="name here" href="/{localLink:5557}">name here</a> which causes a 404 error.
Does anyone have a solution to this broken link error?
{localLink:n} is not replaced by the actual path.
I inserted a link to a page in TinyMCE and {localLink:n} is made. But it was not replaced by the actual link. The version is 7.0. Did I overlook something?
I solved this problem. The inserted link was "href="/umbraco/{localLink:1086}" for some reason though I didn't change it manually. I deleted "/umbraco" and it worked!
This is not answered then. I just found the problem as well. Uh Oh! Looking now for an answer.
OK, so I did the following. Create a class with the following code.
Add to the top of the razor file
Use the new extension method:
Nice solution! Unfortunately the forum system doesn't allow me to move the answer mark to you :)
This issue is also fixed in 7.0.1: http://issues.umbraco.org/issue/U4-3799
Jeroen
I just did a fresh install of 7.0.4 today and I have the same problem. Using the RTE I insert a link and select an internal page to link to. The HTML includes the /umbraco/ folder in the path so the link is not rendered properly. I see this issue was supposed to be corrected in 7.0.1, but I downloaded 7.0.4 today.
Brad
I just upgraded from 7.1.1 to 7.1.9 and this problem exists in both versions. However, the /Umbraco/ prefix in the path has been removed. Now the link is in the format: <a title="name here" href="/{localLink:5557}">name here</a> which causes a 404 error.
Does anyone have a solution to this broken link error?
is working on a reply...