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 created a first draft to fix the language switch. @azinazadi@Haliax@Moyaccercchi Can you review the draft if you think that would be a good solution?
Regarding the implementation, I have a pretty good idea how to fix the gui / content lang mismatch. But I have two open issues. If you know how to do this, please give me a hint:
How to create a redirect in actions/[..slug].js?
Why /actions/[slug-de] works? I guess it's an issue with the router, but I have no idea.
what is the state with your changes? does it work for actions?
Yes, it works just for actions/[slug] not for /actions/. But it is easy to apply this approach to all other pages. I requested review to get feedback for the general approach to use the state and check if you have further ideas to my questions above.
What currently works:
Go to a specific action (e.g. /aktionen/graz-2026-02-22-get-together), click on en, then the page should change to /en/actions/graz-2026-02-22-get-together-en (the english version)
We think we don't really understand your two questions / open issues ^^'
Could you describe a bit more what your problem with the redirects or the working page is?
Regarding this pull request:
If we understand this correctly, we call getLocalizedSlug asychronously on each request for each locale, but will only need it for the not-currently-selected locale... we would prefer a method where we only get the one we need, and ideally without any async requests, as we think for over 1000 views the language switch is only clicked once, so no need to load this all the time but instead just in the moment of the click do some custom logic?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wrong urls
The same content can be accessed by multiple urls. For example