Umbraco-CMS icon indicating copy to clipboard operation
Umbraco-CMS copied to clipboard

Umbraco issue with routing when using multiple domains

Open GianniDPC opened this issue 1 year ago • 1 comments

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

10.7.0

Bug summary

Hello,

I'm working with a multilingual website that has multiple domains and I’ve structured the site as follows:

  • Site (example.com) (root node)

  • Language (example.com/nl)

  • Home page (example.com/nl/home)

  • Site (example2.com) (root node)

  • Language (example2.com/nl)

  • Home page (example2.com/nl/home)

  • Portal (example2.com/nl/portal)

I’ve enabled Culture and Hostnames on both the Site and Language pages. For the Language page, I’ve assigned the domains as /nl and /fr (with the domain prefixed) to accommodate multiple languages.

Important to note that I've also set umbracoInternalRedirectId on the Site page to redirect to the Language page, and on the Language page to redirect to the Home page. So no matter if the user navigates to the domain or language page he always gets send to the home page set in the CMS.

The issue is that navigating to example.com/nl/portal causes the portal page from the example2 domain to be displayed where I expected a 404 because this page doesn't exist under example.com. The correct url would be example2.com/nl/portal in this case.

I used Umbraco 8 in the past with a same structure and didn't encounter this issue so this must be a bug i.m.o.

Kind regards

Specifics

No response

Steps to reproduce

The issue is that navigating to example.com/nl/portal causes the portal page from the example2 domain to be displayed where I expected a 404 because this page doesn't exist under example.com. The correct url would be example2.com/nl/portal in this case.

The issue occurs when using multiple domains set under Culture and Hostnames.

This issue can be reproduced on a clean install.

Expected result / actual result

a 404 page to be displayed as example.com/nl/portal page doesn't exist. It exists only under example2.com/nl/portal.

GianniDPC avatar Feb 20 '24 12:02 GianniDPC

Hi there @GianniDPC!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

  • We'll assess whether this issue relates to something that has already been fixed in a later version of the release that it has been raised for.
  • If it's a bug, is it related to a release that we are actively supporting or is it related to a release that's in the end-of-life or security-only phase?
  • We'll replicate the issue to ensure that the problem is as described.
  • We'll decide whether the behavior is an issue or if the behavior is intended.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot :robot: :slightly_smiling_face:

github-actions[bot] avatar Feb 20 '24 12:02 github-actions[bot]

Hey! Thanks a lot for reporting this issue. I've been trying to reproduce this issue, but I was not able to reproduce the issue☹️. Can you please provide the reproduction steps from a clean install to this issue?

andr317c avatar Feb 22 '24 20:02 andr317c

Hey! Thanks a lot for reporting this issue. I've been trying to reproduce this issue, but I was not able to reproduce the issue☹️. Can you please provide the reproduction steps from a clean install to this issue?

Hi, I created a Test project for you: https://github.com/GianniDPC/Umbraco.TestProject

User: [email protected] Pwd: J=@cLhoXZn

I think it might be caused by using the umbracoInternalRedirectId properties. So to reproduce the issue navigating to /nl/portal displays the Dashboard text meaning it loaded the Dashboard page under Portal when the domain set for Portal is /portal/nl/dashboard .. I would expected a 404 here.

GianniDPC avatar Feb 22 '24 21:02 GianniDPC

@andr317c any update?

GianniDPC avatar Mar 05 '24 12:03 GianniDPC

Hey again! Sorry for not getting back to you sooner, we've been quite busy with the New Backoffice. I took a look at your Test Project, and I was able to reproduce the issue. I also tried reproducing the issue from a clean project on version 10.8.4,and I still got the issue.

Setup Overview:

  • Website, route: "/" (With ContentPicker that has alias 'umbracoInternalRedirectId' pointing towards the child node EN)

    • EN, route: "/en" (With ContentPicker that has alias 'umbracoInternalRedirectId' pointing towards the child node Home)
      • Home, route: "/en/home"
  • Portal, route: "/portal/" (With ContentPicker that has alias 'umbracoInternalRedirectId' pointing towards the child node EN)

    • EN, route: "/portal/en" (With ContentPicker that has alias 'umbracoInternalRedirectId' pointing towards the child node Dashboard)
      • Dashboard, route: "/portal/en/dashboard"

As mentioned in the issue description, navigating to the route 'en/portal', which doesn't exist, redirects to the Dashboard site.

I'll mark this issue as up for grabs.

andr317c avatar Mar 14 '24 11:03 andr317c

Hi @GianniDPC,

We're writing to let you know that we would love some help with this issue. We feel that this issue is ideal to flag for a community member to work on it. Once flagged here, folk looking for issues to work on will know to look at yours. Of course, please feel free work on this yourself ;-). If there are any changes to this status, we'll be sure to let you know.

For more information about issues and states, have a look at this blog post.

Thanks muchly, from your friendly Umbraco GitHub bot :-)

github-actions[bot] avatar Mar 14 '24 11:03 github-actions[bot]