Skip to content

Default culture setting is ignored #211

@gregor-tusar-sowa

Description

@gregor-tusar-sowa

Which version of Skybrud Redirects are you using? (Please write the exact version, example: 4.0.8)

13.0.4

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

13.5.0

Bug description

I have two domains set up DE and EN and a default language set to DE.

image

image

The problem is that if I select specific root node, the redirect with the original URL without domain culture prefix does not work (i.e. /en/test-redirect vs. /test-redirect). If I select All sites it works.

image

I was debugging a bit and found a method SelectDomain in DomainUtils class. It has support for default culture, but looking at the references it is always filled with null value. So in effect the attempt to get domain by default culture in SelectByCulture method is never reached.

I tired to manually change default culture in debugger and it seemd to found the domain correctly.

Is that intentional or is it a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions