You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a project set up with the latest Angular and latest ngx-translate and ngx-translate router. The alwaysSetPrefix property is set to false to not have a language prefix on the default language.
When I navigate within this project everything works as expected, the prefix is added/removed when necessary.
However when I change the language I see the translated url without prefix. When I refresh I end up in my wildcard route handling, the error page.
After updating to Angular 14 (test project is updated) the behaviour is even worse. When I change the language the application navigates from http://localhost:4200/testin-en to http://localhost:4200/test-nl/test-nl.
The language prefix is completely lost and filled with the translated path which causes the path to show twice. When refreshing the route can obviously not be matched and thus the error page shows.
I have a project set up with the latest Angular and latest ngx-translate and ngx-translate router. The
alwaysSetPrefix
property is set to false to not have a language prefix on the default language.When I navigate within this project everything works as expected, the prefix is added/removed when necessary.
However when I change the language I see the translated url without prefix. When I refresh I end up in my wildcard route handling, the error page.
I created a simple example project to reproduce this (https://github.com/stevengunneweg/translate-router-test).
Is this an issue with my setup or is this an issue in the ngx-translate-router library? Please help.
The text was updated successfully, but these errors were encountered: