tag:blogger.com,1999:blog-5251195438749660493.post2339191710306805470..comments2024-03-27T18:06:31.934-07:00Comments on Sitecore Gadgets: Ensure valid Sitecore Internal Links in Page EditorIvanhttp://www.blogger.com/profile/09998430037866709466noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-5251195438749660493.post-77188900100195506612011-12-15T06:54:13.385-08:002011-12-15T06:54:13.385-08:00This bug is now listed as a know issue by Sitecore...This bug is now listed as a know issue by Sitecore, http://sdn.sitecore.net/Products/Sitecore%20V5/Sitecore%20CMS%206/ReleaseNotes/KnownIssues%20Recommended/Internal%20links%20from%20Rich%20Text%20fields%20making%20published%20URLs%20absolute%20instead%20of%20relative.aspxJanhttps://www.blogger.com/profile/11255494161260284837noreply@blogger.comtag:blogger.com,1999:blog-5251195438749660493.post-41925916202440243902011-12-13T04:10:33.825-08:002011-12-13T04:10:33.825-08:00For general information this bug is still present ...For general information this bug is still present in Sitecore 6.5 rev 111123Janhttps://www.blogger.com/profile/11255494161260284837noreply@blogger.comtag:blogger.com,1999:blog-5251195438749660493.post-21405709353089360112011-12-09T08:59:47.844-08:002011-12-09T08:59:47.844-08:00Great catch! I'll update the post with your im...Great catch! I'll update the post with your improved regex. <br />Thanks for pointing it out!Ivanhttps://www.blogger.com/profile/09998430037866709466noreply@blogger.comtag:blogger.com,1999:blog-5251195438749660493.post-79783483295963906852011-12-08T20:52:01.263-08:002011-12-08T20:52:01.263-08:00Great post Ivan. I did find your regex to be a bit...Great post Ivan. I did find your regex to be a bit hungry though was matching all content between first and last links if there was more than one. I had to update to:<br />((http)|(https)):((//)|(\\\\))({0}).*?(~/link.aspx)<br /><br />After that it worked a treat.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5251195438749660493.post-71706062330847802622011-09-06T14:42:03.261-07:002011-09-06T14:42:03.261-07:00Dan,
If you have "sitecore" in the URL ...Dan,<br /><br />If you have "sitecore" in the URL (I guess it starts with "/sitecore/content"), there is a misconfiguration in your Sitecore solution. <br />A good example would be a cross site reference or referring an item from outside of your site structure. If you have cross site references, make sure that "Rendering.SiteResolving" setting has "true" value.<br />If you're referencing resources in some global repository which is outside of your home item, create a logic that would trim unnecessary parts from the URL.<br />Another way to solve this issue would be to use items from global repository as a data reference and have an item that has presentation components under the site structure.<br /><br />Best regards,<br />--IvanIvanhttps://www.blogger.com/profile/09998430037866709466noreply@blogger.comtag:blogger.com,1999:blog-5251195438749660493.post-3949550819456112002011-09-06T08:15:40.160-07:002011-09-06T08:15:40.160-07:00Ivan,
Your blog has helped me a few times in the...Ivan, <br /><br />Your blog has helped me a few times in the past. I'm reaching out becuase I'm not sure is there is an alternative way to fix my problem. <br /><br />When I search for a company and then add the word "sitecore" afterwords, you see links from the website but they include the word "sitecore" in the url. I tried using a robots.txt command to get webcrawlers to avoid "sitecore" but its been a few weeks and the links are still up there. Below is a URL which shows an example of what I'm talking about. <br /><br />http://tinyurl.com/3lold8p<br /><br />I truely appreacite any help you can provide. <br /><br />Thanks, <br />DanDan Reisingerhttps://www.blogger.com/profile/01473577431421362568noreply@blogger.com