Open bcentdev opened 5 years ago
Hello,
Can you check if it works as expected when you enable alwaysSetPrefix
?
Only these urls have to works :
es => http://localhost:4000/es/quotation
en => http://localhost:4000/en/quotation
Thank's
It doesn't work. Anyway I need to configure it without prefix in the default language.
Thank you.
Hello, Can you check files app-routing.module.ts
, app.module.ts
and app.server.module.ts
from https://github.com/gilsdav/angular-universal-localize-router/tree/master/src/app and unsure you have imports and providers at the same place and with the same order ?
For example LocalizeRouterModule
on app-routing.modules.ts
and imported after RouterModule
any update on this issue? We are experiencing similar symptoms, very often CSR & SSR behavior is not consistent so I am trying to figure what's up before I open a new issue
I'm submitting a ... (check one with "x")
Description
Hello, I have an Angular application with Angular Universal, localize-router and ngx-translate installed. When I navigate in the client side of the website, the languages are working well. I have the default language (es) configured to be hidden in the url and english as secondary language. For example:
es =>
http://localhost:4000/quotation
:white_check_mark: en =>http://localhost:4000/en/quotation
:white_check_mark:The problem is that if I deactivate Javascript and force to load the server side of the website, only It works the default language.
es =>
http://localhost:4000/quotation
:white_check_mark: en =>http://localhost:4000/en/quotation
:x:Even If I try to put the default language in the url, It works too:
es =>
http://localhost:4000/es/quotation
:white_check_mark:Node returns me this error in console:
Error: Cannot match any routes. URL Segment: 'en/quotation'
It's like the localize is not well configured but I think that I configured similar to the client side.
🔬 My files
Dependencies of package.json
NgModule of app.module.ts
app.server.module.ts
locales.json
'config.languages' returns...
🌍 Your Environment
Angular Version:
Localize Router Version:
Anything else relevant? I have tried to do changes in LocalizeRouterSettings, change ManualParserLoader by LocalizeParser... But nothing.
I have asked to Melisandre, Geralt de Rivia and Gandalf... But nothing...
Who could be my Superman?
Thank you so much!