Skip to content

Umbraco issue with routing when using multiple domains #15741

Open
@GianniDPC

Description

@GianniDPC

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions