Multi domain and root item redirect issues
# help-with-umbraco
t
Hi all, Intro New to the discord community as the forums appear to be something slowly fading away. I hope to contribute and mingle with everyone soon. Hopefully some of the things I have developed on my current project are helpful for others. To my issue: Outline: - I have two root nodes representing sites. These have pages and items under them and domains setup on each. - I have items like News, Resources, Polices which have a root parent and child items with their own document types. - The sites can share these items so they can have their own items. News and policies have URL's and details pages. The requirement was to match existing site when it was singular so news items have a root URL structure ..... /news-item - There is a complex sync with Algolia search engine for these and other items. Issue: Everything is working great, lots of cool things, secure media, old site 404 handling for resource files and more. The issue is with things like news items. When on site 2 (A branch site) so https://site2.com and there is a link or list for news items and you hover over the link a news item page looks like... https://site2.com/this-is-a-news-item When you click it Umbraco (Umbraco 13) is redirecting to the first root item... https://mainsite.com/this-is-a-news-item Based on the root item for each the header and footer, navigation and other items change for that site but since the news item redirects you switch sites basically. I have tried a few things to prevent this with no success and I do not understand what is the reason for it. - The Umbraco AI bot was not help and gives answers which are NOT how current Umbraco works. - Reading the forums and the net I do not believe I have found the problem/issue to be able to resolve it. I can provide more information. Has anyone got any thoughts? Thanks all
I worked out the redirect as a result of middleware I had. So the real implementation issue is that News container - root item - no template News item - /news-itemhere First root node with domain- Loads news item Second root node item - 404 It should just work with both should it not?
3 Views