kipusoep / UrlTracker

The Url Tracker for Umbraco
MIT License
54 stars 61 forks source link

Node change detection doesn't work correctly for multi-site umbraco installation #202

Open kunal999 opened 5 years ago

kunal999 commented 5 years ago

We have a multi-site installation under a single Umbraco instance. The sites are configured so that the roots of the different sites point to different paths under the same domain. e.g. Main site -> www.xyz.com Latin site -> www.xyz.com/la Mexico site -> www.xyz.com/mx

Node change detection works correctly for the main site. The redirect record gets attributed to the correct RedirectRootNodeId for the main site. e.g. for Main site, /abc -> /mno Redirect record: Old URL (abc), RedirectRootNodeId (Root node Id of main site)

However, for any nodes under the other sites, when a node changes, the redirect record has the correct RedirectRootNodeId but the OldUrl field still prepends the main segment of the path to the url value. e.g. for a change under /mx site from /abc -> /mno Redirect record: Old URL (mx/abc), RedirectRootNodeId (Root node Id of mexico site)

This causes the redirect to not take effect correctly and it 404s.

shearer3000 commented 5 years ago

hello - any update on this issue? We have also noticed this on a multilingual site as per the description above. thanks

using version 3.15