Try our conversational search powered by Generative AI!

Link between languages doesn't work properly when using wildcard hostname

Found in

EPiServer.CMS.Core 10.10.3

Fixed in

EPiServer.CMS.Core 11.5.2

(Or a related package)

Created

Feb 27, 2018

Updated

Apr 13, 2018

Area

CMS Core

State

Closed, Fixed and tested


Description

Steps to reproduce
1. Enable a second language (for example, sv) on an Alloy site.
2. Translate the start page and alloy-plan so you have those pages in en and sv.
3. Under Managed websites, set the original hostname to en.
4. Add a second hostname, and set that to sv.
5. Add a wildcard hostname (if not already present). Since you've set a language for the hostnames, you need to set a language for the wildcard hostname (something that was introduced in cms 10). Set it to en.
6. Go into en's alloy-plan xhtmlstring property and create a link to the sv's Alloy plan's page (choose sv language).
7. From the sv's alloy-plan's xhtmlstring property, create a link to the en's Alloy plan's page.
8. Click the link.

Expected:
You are directed to the correct hostname and page.

Actual:
You cannot go from the sv's alloy-plan's link to the en page.

Side note:
Removing the wildcard hostname makes it work but this creates other issues, for example, search in the assets pane or edit mode do not function properly without a wildcard hostname.

Possible workaround:
Create some language you won't use and set the wildcard hostname to that language and create a hostname with that unused language.
Another workaround that seems to work is settting the wildcard host type to "Redirected".