Skip to content

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

@jerefrer

Description

@jerefrer

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions