Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am trying to add link to another umbraco node in the Grid Layout rich text editor. Instead of valid URL I'm getting something like this
<a href="../{localLink:1636}" title="test">link</a>
This is the link to the TemplateUtilities class that is used for extracting links from the Grid Layout data.
https://github.com/umbraco/Umbraco-CMS/blob/7.2.1/src/Umbraco.Web/Templates/TemplateUtilities.cs
One thing is suspicious in code, regex matching on the line 56, if it fails there is no replacing of json data with proper url.
External links are inserted properly.
I'm using latest Chrome on Win7 machine, Umbraco version 7.2.1
I fixed this by changing regex in the TemplateUtilities method ParseInternalLinks.
Line 56 now looks like this (in my code)
var tags = Regex.Matches(text, @"href=""\.*[/]?(?:\{|\%7B)localLink:([0-9]+)(?:\}|\%7D)", RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace);
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Grid Layout insert link
I am trying to add link to another umbraco node in the Grid Layout rich text editor. Instead of valid URL I'm getting something like this
<a href="../{localLink:1636}" title="test">link</a>
This is the link to the TemplateUtilities class that is used for extracting links from the Grid Layout data.
https://github.com/umbraco/Umbraco-CMS/blob/7.2.1/src/Umbraco.Web/Templates/TemplateUtilities.cs
One thing is suspicious in code, regex matching on the line 56, if it fails there is no replacing of json data with proper url.
External links are inserted properly.
I'm using latest Chrome on Win7 machine, Umbraco version 7.2.1
I fixed this by changing regex in the TemplateUtilities method ParseInternalLinks.
Line 56 now looks like this (in my code)
var tags = Regex.Matches(text, @"href=""\.*[/]?(?:\{|\%7B)localLink:([0-9]+)(?:\}|\%7D)", RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace);
is working on a reply...