-
Notifications
You must be signed in to change notification settings - Fork 87
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
feat: language switch with multisite support #722
Conversation
f0c1329
to
27741e9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The generated links in the language switch component look like this now for our standard multi-site configuration: http://localhost:4200/de/home;redirect=1;lang=de_DE
I would have expected http://localhost:4200/de/home
. What is the reason for keeping the ;redirect=1;lang=de_DE
part. Isn't this still doing things that would no longer be necessary?
This comment has been minimized.
This comment has been minimized.
27741e9
to
223e097
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the multiSiteLocaleMap
must not only be a environment.ts
property, but an environment property. It should also be possible to define complete URLs to switch to so that this feature also works when the multi-site setup is using different domains for each channel.
223e097
to
628f24e
Compare
src/app/shell/header/language-switch/language-switch.component.html
Outdated
Show resolved
Hide resolved
…ommented example (this combination is not yet working)
PR Type
[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] CI-related changes
[ ] Documentation content changes
[ ] Application / infrastructure changes
[ ] Other:
What Is the Current Behavior?
Currently, the language switch only changes the language and completely ignores any multisite config.
What Is the New Behavior?
Now the language switch works with our new default multi site setup and can be configured/overridden to work with arbitrary multi site configurations.
Does this PR Introduce a Breaking Change?
[ ] Yes
[ x No
Other Information