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

Invite/reset emails point to a wrong URL when using i18next with showDefaultLocale: true #78

Open
jerefrer opened this issue Sep 3, 2023 · 0 comments

Comments

@jerefrer
Copy link

jerefrer commented Sep 3, 2023

Hi there and thanks for this great integration :)

I have everything up and running and it worked great, until I turned on showDefaultLocale to true in my i18next config file.

What this does is that instead of having the urls for the default language on /, they are on /en. (i.e. /blog becomes /en/blog)

So for the homepage, as stated in Astro's docs, I just have this src/pages/index.astro:

<meta http-equiv="refresh" content="0;url=/en/" />

Which just redirects from / to /en.

But then the links in the emails sent by Netlify upon registration or forgotten email all point to /#invite_token=2EUz71D9siVlVLJjsPhj1w which then redirects to /en without the extra #invite_token.

Would there be a way to specify the URL in the emails to be /en ?

Or could we change src/pages/index.astro so that upon redirecting it preserves the #invite_token ?

Thank you so much :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant