Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Href Lang Tags with Multisites #148

Open
troxxs opened this issue Oct 11, 2023 · 0 comments
Open

Href Lang Tags with Multisites #148

troxxs opened this issue Oct 11, 2023 · 0 comments

Comments

@troxxs
Copy link

troxxs commented Oct 11, 2023

Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no

Given Scenario

System: Pimcore Version 10.6.3 | dachcom-digital/i18n Version 4.1.9
Country-specific sites: https://domain.de, https://domain.ch
Available locales: de_DE and en_DE (for .de domain) de_CH and en_CH (for .ch domain)

The document https://domain.de/de/test is linked to all its corresponding country and language pages:
https://domain.de/en/test (en_DE)
https://domain.ch/de/test (de_CH)
https://domain.ch/en/test (en_CH)

Current Result

for https://domain.de/de/test, the generated href lang tags are

<link href="http://domain.de/de/test" rel="alternate" hreflang="x-default">
<link href="http://domain.de/de/test" rel="alternate" hreflang="de-de">
<link href="http://domain.de/en/test" rel="alternate" hreflang="en-de">

Expecting Result

href lang tags for all the corresponding country and language pages:

<link href="http://domain.de/de/test" rel="alternate" hreflang="x-default">
<link href="http://domain.de/de/test" rel="alternate" hreflang="de-de">
<link href="http://domain.de/en/test" rel="alternate" hreflang="en-de">
<link href="http://domain.ch/de/test" rel="alternate" hreflang="de-ch">
<link href="http://domain.ch/en/test" rel="alternate" hreflang="en-ch">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant