Copied to clipboard

Flag this post as spam?

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


  • Eric Herlitz 97 posts 129 karma points
    Jun 12, 2011 @ 19:02
    Eric Herlitz
    0

    Stop Umbraco form stealing internal links

    Hi

    Sometimes I want to write the entire link to a page, which can be good if in example a visitor wants to print the page or just copy the url from the web site. The thing is if I write http://www.mysite.com/licensing/terms ubmraco cuts that and removes the http://www.mysite.com, both from the link it self and from the text. 

    Ie

    <a href="/licensig/terms">/licensig/terms</a>

    What i want is that it should remain as

    <a href="http://www.mysite.com/licensing/terms">http://www.mysite.com/licensing/terms</a>;

    It does not matter if i write the link in the source editor, if i write it in the html source editor or if I use the link tool in the rich text editor.

    Anyone know how to fix this?

     

     

     

  • Åke Järvklo 23 posts 69 karma points
    Jun 12, 2011 @ 20:32
    Åke Järvklo
    0

    If you'e confortable with hacking the config files, add this setting to the customConfig part of the tinymce config file (tinyMceConfig.config) :

    <customConfig>
        <config key="convert_urls">false</config>

    ...

    Read more about it here: http://our.umbraco.org/forum/developers/extending-umbraco/7961-Add-tinyMCE-configuration-(disable-relative-urls) or  here: http://tinymce.moxiecode.com/wiki.php/TinyMCE_FAQ#Paths.2FURLs_are_incorrect.2C_I_want_absolute.2Frelative_URLs.3F

     

  • Eric Herlitz 97 posts 129 karma points
    Jun 12, 2011 @ 22:52
    Eric Herlitz
    0

    Thans Åke, thats solved parts of my problem.

    If I link within www.mysite.com it works but I host some subdomains in the same umbraco installation, like http://docs.mysite.com. So still if I create a link in the docs web site to the http://www.mysite.com/licensing/terms it renders licensing/terms.

    Argghs! :(


     

  • 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