Skip to content
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

fix: defineI18nRoute do not work client-side #1902

Merged
merged 1 commit into from
Mar 3, 2023

Conversation

borghol
Copy link
Contributor

@borghol borghol commented Mar 2, 2023

πŸ”— Linked issue

#1889

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

When attempting to check redirection, the detectRedirect function matches a non-defined i18n route back to the root path.

The detectRedirect function was modified to detect whether the route matched by the router is an i18n route. If it is, we will continue with the logic as-is. If it is not, we will skip redirection.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@kazupon
Copy link
Collaborator

kazupon commented Mar 3, 2023

That's excellent work! ❀️
Thanks!

@kazupon kazupon merged commit 182098b into nuxt-modules:next Mar 3, 2023
kazupon added a commit that referenced this pull request Jun 13, 2023
kazupon added a commit that referenced this pull request Jun 13, 2023
DarthGigi pushed a commit to DarthGigi/i18n that referenced this pull request Apr 16, 2024
…1902)

Co-authored-by: khaled.borghol <khaled.borghol@abyatonline.com>
DarthGigi pushed a commit to DarthGigi/i18n that referenced this pull request Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants