Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sen Harada 10 posts 102 karma points
    Dec 12, 2013 @ 12:25
    Sen Harada
    0

    {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?

  • Sen Harada 10 posts 102 karma points
    Dec 13, 2013 @ 07:19
    Sen Harada
    100

    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!

  • Ben Norman 167 posts 275 karma points
    Dec 17, 2013 @ 02:12
    Ben Norman
    0

    This is not answered then. I just found the problem as well. Uh Oh! Looking now for an answer.

  • Ben Norman 167 posts 275 karma points
    Dec 17, 2013 @ 02:44
    Ben Norman
    0

    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);
            }
        }
    }
    

    Add to the top of the razor file

    @using tr.client.web.Extensions
    

    Use the new extension method:

    @Html.Raw(Umbraco.ParseInternalLinks(Umbraco.Field("bodyText")))
    
  • Sen Harada 10 posts 102 karma points
    Dec 17, 2013 @ 12:06
    Sen Harada
    0

    Nice solution! Unfortunately the forum system doesn't allow me to move the answer mark to you :)

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Dec 17, 2013 @ 12:13
    Jeroen Breuer
    0

    This issue is also fixed in 7.0.1: http://issues.umbraco.org/issue/U4-3799

    Jeroen

  • Brad Hunt 26 posts 57 karma points
    Mar 23, 2014 @ 21:49
    Brad Hunt
    0

    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

  • Kyle Denton 2 posts 22 karma points
    Dec 10, 2014 @ 03:17
    Kyle Denton
    0

    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?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies