Skip to content

Multi site url tracker ignores domainRootId #20894

@ThiemeH

Description

@ThiemeH

Which Umbraco version are you using?

16.3.4

Bug summary

Hi there,

We are currently migrating a project from v10 to v16, and I am running into a critical bug in the url redirect tracker.
The issue is that the redirect tracker does NOT include the domainRootId when writing to the database. In a multi site setup, where multiple domains are used, will this result in all original urls using the hostname of the CMS.

Image

Please note that this wasn't an issue in v10.

Specifics

No response

Steps to reproduce

You can reproduce this issue by:

  1. Cloning the main branch of this repo
  2. Set UrlProviderMode to Absolute in the development appsettings
  3. Create a basic multi site setup as seen below (give both sites an original hostname)
  4. Publish all content
  5. Rename one of the content of a website
Image

Expected result / actual result

Expected behaviour is that the original url should also contain the correct hostname:

Image

The only way I made this work is by manually adding the domainRootId in the database entry

RedirectTrackingHandler.cs is the starting point for this
RedirectTracker.cs is where the redirect is created

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