Netlify Invite Emails go to bare domain not /admin #7339
Replies: 3 comments 5 replies
-
|
Found https://decapcms.org/docs/choosing-a-backend/ which details it's a Netlify thing. Unfortunately Starter (free) accounts can't change the Identity-generated emails. |
Beta Was this translation helpful? Give feedback.
-
|
Yep, I've run into the same issue. There's a couple of (pretty clunky TBH!) ways to get around this
|
Beta Was this translation helpful? Give feedback.
-
|
You can define custom Netlify Identity email templates, as documented here: https://docs.netlify.com/security/secure-access-to-sites/identity/identity-generated-emails/#email-templates Put these files in your repo's admin folder, for instance, This is how our templates look like: invitation.html <h2>You have been invited</h2>
<p>You have been invited to create a user on {{ .SiteURL }}. Follow this link to accept the invite:</p>
<p><a href="{{ .SiteURL }}/admin/#invite_token={{ .Token }}">Accept the invite</a></p>confirmation.html <h2>Confirm your signup</h2>
<p>Follow this link to confirm your user:</p>
<p><a href="{{ .SiteURL }}/admin/#confirmation_token={{ .Token }}">Confirm your mail</a></p>password-recovery.html <h2>Reset Password</h2>
<p>Follow this link to reset the password for your user:</p>
<p><a href="{{ .SiteURL }}/admin/#recovery_token={{ .Token }}">Reset Password</a></p>email-change.html <h2>Confirm Change of Email</h2>
<p>Follow this link to confirm the update of your email from {{ .Email }} to {{ .NewEmail }}:</p>
<p><a href="{{ .SiteURL }}/admin/#email_change_token={{ .Token }}">Change Email</a></p> |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When I invite a user to my site, (Jekyll, source on Github, hosted on Netlify), the email confirmation:
However the 'Accept the invite' link goes to
/#invite_token=xxxnot/admin/#invite_token=xxxBecause the # isn't passed to the domain, I can't use a redirect to fix this. I can't find any way to configure this in Netlify, so is there something in the Decap settings which fixes this?
Beta Was this translation helpful? Give feedback.
All reactions