[MULTISITE-173] Multisite - case insestitive URLs Created: 20/Jan/23  Updated: 20/Jan/23

Status: Open
Project: Magnolia Multisite Module
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Krystof Raiskub Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 Description   

Hello,

On the Corporate website (Magnolia Websites, Corporate project), we use a Multisite module and support four languages (English - default, German, Spanish and Chinese) our locales definition in the multisite module decoration file looks like this: 

locales:
  en:
    enabled: true
    language: en
  de:
    enabled: true
    country: DE
    language: de
  es:
    enabled: true
    country: ES
    language: es
  zh:     
    enabled: true
    country: CN
    language: zh

Based on this definition, the links e.g. for DE language have this pattern:

https://www.magnolia-cms.com/de_DE/

If a user tries to access the same URL, but with a lowercase language part of the URL (/de_de instead of /de_DE), it throws HTTP 404 Page not found error.

https://www.magnolia-cms.com/de_de/

I would like to ask if it would be possible to make the language part of the URL case insensitive so that both versions of the URL work.

Original ticket: WEBSITE-2947

Thanks a lot,
Krystof


Generated at Mon Feb 12 06:07:05 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.