Skip to content

Localized URL for root pages seems broken #5

@greystate

Description

@greystate

Hi there 👋

I seem to have hit a bug, using this package.

When a rootnode has multiple hostnames assigned, each with their own language, getting their URL doesn't work correctly...

Example

  • One root node with two languages, English (US) and Danish
  • One has example.com set as hostname, the other has example.com/da - each with their own language

When trying to render a language picker, we no longer get the correct URLs for the root node; e.g. Model.Root().Url("da") and Model.Root().Url("en-us") returns the same URL (/ or https://example.com/ if using UrlMode.Absolute)

If I uninstall InvisibleNodes, the URLs are correctly rendered.

Note

The URLs render correctly in the Links area on Umbraco's Info tab

I'm using Umbraco v13.3.1 and your latest (at time of writing) package release, v2.0.1

Thanks 🙌

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions