core
core copied to clipboard
Update Starter Site to Use Locale for URL Path
Parent Issue
https://github.com/dotCMS/core/issues/25603
Task
Once we have Locale IDs, we'll need a way to call content through the URL using the Locale IDs.
Proposed Objective
Core Features
Proposed Priority
Same as Parent
Acceptance Criteria
All of these need to be optional so we don't break any sites currently in production. This would be more like an optional feature people could turn on for now; and likely they way we'd want to configure all new sites going forward.
We want to be able to provide modern localization conventions right out of the box; users and implementation partners don’t need to put a lot of thought or planning into this as that often leads them to reinvent the wheel – and often they aren’t following established best practices.
Users would be able to define what Locales their site supports, and from there we could build out a URL structure for them.
URL | Notes |
---|---|
dotcoms.com/en/some-page | This is the Default English Language version of “Some Page” – note that there is no “default English” and we really should push users to use a Locale, not just a language. |
dotcoms.com/en-us/some-page | This is the English Language version of “Some Page” for user in The United States. |
dotcoms.com/es/some-page | This is the Default Spanish Language version of “Some Page”. |
dotcoms.com/es-us/some-page | This is the Spanish Language version of “Some Page” for user in The United States. |
dotcoms.com/es-cr/some-page | This is the Spanish Language version of “Some Page” for user in Costa Rica. |
Note that eventually we'll want to be able to nest all localized content in that folder for the locale.
So like...
- dotcms.com/en-us/index.html
- dotcms.com/en-us/sitemap.xml
- dotcms.com/en-us/404
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
No response
Assumptions & Initiation Needs
https://github.com/dotCMS/core/issues/25612
Quality Assurance Notes & Workarounds
No response
Sub-Tasks & Estimates
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.