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?
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.
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.
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!
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
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
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
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!
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.
is working on a reply...
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.