SSR + Internationalization + pre-rendered routes does not return pre-rendered pages #27196
Labels
area: @angular/ssr
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Which @angular/* package(s) are the source of the bug?
language-service, platform-server
Is this a regression?
Yes
Description
When adding SSR and Internationalization to a project, the pre-rendered routes are not served.
Most basic example with preconfigured ssr + localize + prerender: https://github.com/lostium/ssr-i18n-angular17
But this is also visible with a clean Angular CLI project adding SSR + localize + Prerender
Somewhere along the way Angular isn't serving the pre-rendered page when navigating to http://localhost:4000/en/page-1
To be clear: everything works as expected excluding Internationalisation and step 6 without the i18n does work http://localhost:4000/page-1 so its only after adding i18n that the pre-rendered page isn't being served.
Please provide a link to a minimal reproduction of the bug
https://github.com/lostium/ssr-i18n-angular17
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
The combination of SSR and Internationalisation isn't well documented and the ng update, ng add doesn't change the code to make it work together. Developers now have to go outside the official Angular documentation to make it work.
Would be great as well that the official Angular documentation has a working version of all these feature combined together with complete code of a most basic & running example: SSR + Internationalisation + Pre-render.
The text was updated successfully, but these errors were encountered: