Skip to content

feat(ngx-i18n): preserve route when an invalid language is selected - #31

Open
DenisValcke wants to merge 1 commit into
IbenTesara:mainfrom
DenisValcke:bugfix/preserve-route-after-i18n-language-correction-in-guard
Open

feat(ngx-i18n): preserve route when an invalid language is selected#31
DenisValcke wants to merge 1 commit into
IbenTesara:mainfrom
DenisValcke:bugfix/preserve-route-after-i18n-language-correction-in-guard

Conversation

@DenisValcke

Copy link
Copy Markdown
Contributor

Hi

In the i18n-guard, if the language param doesn't match, I would try to preserve the route instead of correcting the language param and redirecting to the root route.

Take a look, and let me know what you think. It is just a suggestion and I'm open to iteration/rework or brainstorming other approaches of course.

FYI: the unit testing has been updated with help from Claude Code.

@IbenTesara IbenTesara self-assigned this Aug 18, 2026
@IbenTesara IbenTesara added the bug Something isn't working label Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants