fix(core): update all [...locale] pages #25

Closed
opened 2025-10-16 20:29:45 +00:00 by chartgerink · 4 comments
Owner

The pages are being worked on continuously prior to (re)launch, and it is key to ensure everything is consistent. This issue tracks that work. All pages with .astro have to be updated.

The pages are being worked on continuously prior to (re)launch, and it is key to ensure everything is consistent. This issue tracks that work. All pages with `.astro` have to be updated.
Author
Owner

So the option is to refactor the pages into components, which get passed the locale. Ideally, the duplication would not be necessary to begin with, and that would require all pages to redir to some locale (MDN does this too, for example). This would require testing middleware properly to always redir to the default if none is present, and that is a bit more of an undertaking.

To be continued...

So the option is to refactor the pages into components, which get passed the locale. Ideally, the duplication would not be necessary to begin with, and that would require all pages to redir to some locale (MDN does this too, for example). This would require testing middleware properly to always redir to the default if none is present, and that is a bit more of an undertaking. To be continued...
Author
Owner

Some items for me to keep track of:

  • Incorrect paths correctly route to a localized 404 page STATIC
  • Incorrect paths correctly route to a localized 404 page DYNAMIC (eg @username)
  • generally 404 response is handled elegantly (as is right now)
  • ensure links throughout the application are localized (OrganizationCard, Usercard for example) -> #81
  • non-localized paths default to the default locale correclty
  • non-existing pages lead to 404 (e.g., /en/fdfasdfdsa does not lead to homepage)
  • click through test of all pages and actions
Some items for me to keep track of: - [x] Incorrect paths correctly route to a localized 404 page STATIC - [x] Incorrect paths correctly route to a localized 404 page DYNAMIC (eg @username) - [x] generally 404 response is handled elegantly (as is right now) - [ ] ~~ensure links throughout the application are localized (OrganizationCard, Usercard for example)~~ -> #81 - [x] non-localized paths default to the default locale correclty - [x] non-existing pages lead to 404 (e.g., `/en/fdfasdfdsa` does not lead to homepage) - [x] click through test of all pages and actions
Author
Owner
  • en -> en-US
- [x] `en` -> `en-US`
Author
Owner
  • ensure switching of locale preserves current page
- [x] ensure switching of locale preserves current page
Sign in to join this conversation.
No description provided.