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

Weird issue with URL parsing #165

Open
gizbo opened this issue Sep 15, 2024 · 1 comment
Open

Weird issue with URL parsing #165

gizbo opened this issue Sep 15, 2024 · 1 comment

Comments

@gizbo
Copy link

gizbo commented Sep 15, 2024

Hello guys,

I have 3 languages: en, fr, and es. The translations work fine using ngx-translate, and the URLs are all getting localized and everything. However, if I try entering a Spanish URL, it doesn't work at all and redirects to the default 404 page in English. French and English seem to be the only ones supported. Do I have to explicitly register the prefixes ['en', 'es', 'fr']?

Thanks so much.

@neverlose-lv
Copy link

I have similar problem after updating my project to new Angular version the the new build system.
Earlier - I did not have such problems.
I believe this plugin seems not to be working well with the recent Angular version. (with SSR).
It seems that the request object nor the location path are not defined on the very first query. Then happens 302 redirect to the default language. And the values are populated.
I have tried different approaches with no success.

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

2 participants