404 or page not found on redirect to CSM

Hello
I’ve been on this all day with multiple trials but all led to the same error.
it’s either im getting a 404 image on the “login with github” redirect
OR i’m getting “Page not found” error.
I tried everything ! even spent 3 hours with GPT to solve this and just going back and forth between errors.
please look into this and tell me what im doing wrong here

Site is stackcomparepro.com
Deploys from GitHub

Thanks!

1 Like

replying to get noticed

If you’re having issues with a login with Github button on your deployed site, this is not something we can assist with, as we do not debug custom code. I’d recommend other online communities that help troubleshoot custom code for further assistance!

I think you misunderstood, it is not on my deployed site.
I’m getting this error while trying to enter the CMS with the “Login with GitHub” to my /admin so i could actually start building the website.

redirected to: Sign in to GitHub · GitHub
=404 image

admin/config.yml - seems ok
netlify.toml — one redirect rule that keeps the query-string
admin/index.html — no Identity script
According ChatGPT: the editor is still falling back to Netlify Identity (git-gateway).

After the “login with github” i should be redirected to Sign in to GitHub · GitHub
but its redirecting me to https://api.netlify.com/auth?provider=github&site_id=stackcomparepro.com&scope=repo
ALTHOUGH i’ve deleted netlify.toml file. the redirect keeps sending the editor into Netlify-Identity’s

@stackcomparepro Netlify CMS was deprecated quite a few years ago and became Decap, see:
https://www.netlify.com/blog/netlify-cms-to-become-decap-cms/

Netlify Identity is also deprecated.

Warning in the documentation here:
https://docs.netlify.com/security/secure-access-to-sites/identity/

Changelog notice here:
https://www.netlify.com/changelog/deprecation-netlify-identity/

Decap related discussion here:
https://github.com/decaporg/decap-cms/discussions/7419

I know, and there is no sign of the api.netlify anywhere in the files or settings. I did manage to work around it with a very lean;
index.html (public page)
admin/index.html (CMS loader – no Identity script!)
admin/config.yml → auth_type: pkce

I did manage to get to the Github Auth page, but right after entering the password its redirecting to a 404 image.

@stackcomparepro Unfortunately I don’t believe you’re going to be able to get support for any of it here.

Instead of starting a project with resources that are knowingly deprecated, you should migrate to something that’s in current development and hopefully actively supported.

Some examples of options that might suit based on a very quick google search:
https://decapcms.org/
https://staticcms.org/
https://github.com/sveltia/sveltia-cms
https://keystatic.com/
https://outstatic.com/

1 Like

Nathan is correct, we don’t offer support for Decap and since Netlify Identity has been deprecated, we no longer offer support for Identity. I would recommend taking a look at Nathan’s suggestions to use a third-party solution moving forward.