We have a multi-site solution running Umbraco 7.6.4. We have a problem adding links from other sites to the first created site in RTE. When we add a link it just puts a relative path to the node that was picked (e.g. /citizens).
The main site has a hostname (set in hostnames on the node) example.com. The site we're trying to create a link on has a different domain, let's say different-example.com . So because the link resulting from the link picker in the RTE gives a relative link back (/citizens) the result is wrong, because it results in a link different-example.com/citizens which is obviously wrong.
I suspect that the reason is because the first node under rootContent has a path "/", even though we have a different hostname set. (I can see the "/" when I go to the properties tab of that site).
Can I force the first site node (example.com) to actually use the full hostname path ? I think that would fix the relative path issue.
Umbraco node at root has "/" path
We have a multi-site solution running Umbraco 7.6.4. We have a problem adding links from other sites to the first created site in RTE. When we add a link it just puts a relative path to the node that was picked (e.g. /citizens).
The main site has a hostname (set in hostnames on the node) example.com. The site we're trying to create a link on has a different domain, let's say different-example.com . So because the link resulting from the link picker in the RTE gives a relative link back (/citizens) the result is wrong, because it results in a link different-example.com/citizens which is obviously wrong.
I suspect that the reason is because the first node under rootContent has a path "/", even though we have a different hostname set. (I can see the "/" when I go to the properties tab of that site).
Can I force the first site node (example.com) to actually use the full hostname path ? I think that would fix the relative path issue.
I also don't understand why the first node under rootContent has a path of "/" considering a hostname's set on it.
Hi Martin,
In config/umbracoSettings.config
you will find
If you change the value to true the link will show the domain set in the hostnames and cultures of the root node.
Hope that helps, Matt
Thanks, that worked.
is working on a reply...