-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
Which Umbraco version are you using?
15.4.0-rc.preview.40
Bug summary
The ContentFinderByUrlNew
content finder does not seem to check the UrlProviderMode setting during routing.
When a request is processed and a domain match was not found, the content finder makes use of the default IDocumentUrlService
implementation which then falls back to the first root content node here.
return GetTopMostRootKey(isDraft, culture); |
Specifics
My project hosted in Umbraco Cloud has multiple sites and domains, I'm trying to prevent the default project-name.uksouth01.umbraco.io
domain from successfully routing through to any public facing website. I'm also trying to prevent domain1.com/some-page
from routing through to domain2.com/some-page
when it doesn't exist on the first site.
The UrlProviderMode
seems to have replaced the older useDomainPrefixes
setting from earlier versions of Umbraco. From researching the forums this older prefix setting seemed to match the behavior I'm looking for above.
Steps to reproduce
Create two root content nodes and assign them each a domain. Set the UrlProviderMode setting to Absolute, and test if a 3rd, unassigned domain can route through to content.
Expected result / actual result
The unassigned domain should get a 404 response when the UrlProviderMode is set to Absolute.
This item has been added to our backlog AB#51885