Reset password works but redirects it to the wrong link

Hi guys,
I met a bug.
I do have a a website on your service: https://something.netlify.app (“something” is dummy url)
Now, please, follow up: → When I go “Identity” → then I click on one any confirmed user → click “Send reset password email” I’m getting successfully getting confirmation email → when I click on the confirmation link I am successfully redirected to page which allow me to reset password → once I typed in new password and confirmed it with a button below I’m getting redirected to the link: “something.netlify.app/admin/admin”, instead of “portl-staging.netlify.app/admin” . Tried it on different users and works same. The password reset works successfully and for me its not an issue but for many non-technical guys its an issue indeed. Can you, please, fix the redirect link which works incorrectly. Thanks

It is assumed that your will handle the login/signup on the home page and thus, after login or something you can go to /admin/. It’s not a bug, rather intended behaviour and it’s mostly handled by client-side JS code.

Are you able to share your source code?

I wrote a little guide on how to setup Netlify Identity to work with Netlify CMS:

the root of my project looks like the following:

drwxr-xr-x  8 user user   4096 Aug  4 18:50 .git
-rw-r--r--  1 user user     63 Aug  4 18:21 .gitignore
-rw-r--r--  1 user user   1551 Aug  4 18:21 .gitlab-ci.yml
-rw-r--r--  1 user user    299 Aug  4 18:21 README.md
drwxr-xr-x  2 user user  20480 Aug  4 18:21 articles
-rw-r--r--  1 user user   2055 Aug  4 18:21 gridsome.config.js
-rw-r--r--  1 user user    576 Aug  4 18:21 gridsome.server.js
drwxr-xr-x  2 user user   4096 Aug  4 18:21 home_articles
drwxr-xr-x  2 user user   4096 Aug  4 18:21 links
drwxr-xr-x  2 user user   4096 Aug  4 18:21 media
-rw-r--r--  1 user user 728298 Aug  4 18:21 package-lock.json
-rw-r--r--  1 user user   1507 Aug  4 18:21 package.json
-rw-r--r--  1 user user     81 Aug  4 18:21 portl.code-workspace
drwxr-xr-x  2 user user   4096 Aug  4 18:21 product_features
drwxr-xr-x  3 user user   4096 Aug  4 18:21 scripts
drwxr-xr-x  9 user user   4096 Aug  4 18:21 src
drwxr-xr-x  7 user user   4096 Aug  4 18:21 static
drwxr-xr-x  2 user user   4096 Aug  4 18:21 text_blocks
drwxr-xr-x  2 user user   4096 Aug  4 18:21 use_cases

when I go cd ./src/admin I see 3 files:

-rw-r--r-- 1 user user     4101 Aug  4 18:50 config.yml
-rw-r--r-- 1 user user     256 Aug  4 18:21 index.html
-rw-r--r-- 1 user user     29 Aug  4 18:21 index.js

index.js it is a one-liner file and looks the following:
import CMS from "netlify-cms"

Should I show you some more?
Thanks for help

I’ve been following this article and issue is not resolved … any other help or should I provide more info?

1 Like

Have you followed the gridsome guide?:

If you’re using the gridsome-plugin-netlify-cms, you might want to dive into it’s configuration options:

1 Like

I’m also having the same problem with Netlify CMS. We’ve created custom email templates containing /admin and updated the email settings in /configuration/identity#emails to point at them, but the custom email templates are never used. The CMS still sends the default emails. Is there another step we’re missing, that tells the CMS to use the custom emails instead of the defaults?

Please don’t post in un-related threads (especially that are 2+ year old).