Copied to clipboard

Flag this post as spam?

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


  • Dan Evans 631 posts 1018 karma points
    Sep 08, 2009 @ 17:18
    Dan Evans
    0

    Insert link dialog

    I'm using Umbraco 3.

    I have 2 sites in the installation seperated using Umbraco hostnames, www.1.com and www.2.com

    If i create a link in TinyMCE to a page on www.2.com from www.1.com then the editor strips out the domain name e.g. www.2.com/page.aspx becomes /page.aspx.

    Page.aspx does not exist as it's on a different site so the link fails.

    Is there a way of stopping the link editor doing this?

    Thanks

    Dan

  • dandrayne 1138 posts 2262 karma points
    Sep 08, 2009 @ 19:23
    dandrayne
    0

    Hi Dan

    This old forum post has a solution for v3, but it involves changing some core code...  Still, AFAIK there aren't going to be any more 3. releases so you should be fine to change the code.

    Dan

  • Dan Evans 631 posts 1018 karma points
    Sep 09, 2009 @ 17:37
    Dan Evans
    0

    So there is no other way to stop this happening other than changing core code? I really don't want to do that if possible even though i take your point that there will be no more 3 releases.

    Thanks

    Dan

  • dandrayne 1138 posts 2262 karma points
    Sep 09, 2009 @ 17:49
    dandrayne
    0

    Doesnt look like it, although admittedly I've only done a very cursory investigation.  It looks like it's just a case of swapping out the NiceUrl function, so i'd give it a go... on a testing platform!

  • Dan Evans 631 posts 1018 karma points
    Sep 10, 2009 @ 11:44
    Dan Evans
    0

    There is a solution. What i've noticed is Umbraco only removes domain names from the main site domain. Any additional host names are ignored.

    So if your site is on http://www.mysite.com then link to http://mysite.com and it works.

    Even better, use the URLRewriter or IIS to perform a redirection from the secondary domain to the main domain and users won't even see the URL change.

    The only problem is making sure all content editors are aware that links must be made to a secondary domain alias.

     

  • 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