diff --git a/DECAP_CMS_SETUP.md b/DECAP_CMS_SETUP.md index 9899335..8341e9d 100644 --- a/DECAP_CMS_SETUP.md +++ b/DECAP_CMS_SETUP.md @@ -118,19 +118,23 @@ Netlify redirect rules for admin routing ## Troubleshooting -### Current Error: "Unable to access identity settings" +### Fixed Issues: -**This specific error means:** -- Netlify Identity service is not enabled on your site -- Git Gateway is not enabled -- Or both services need to be configured +✅ **"Unable to access identity settings"** - This was fixed by enabling Identity and Git Gateway in Netlify +✅ **Confirmation email links not working** - Created `/auth` page to handle authentication tokens -**Solution steps:** +### Current Setup Status: + +The site now has: +- Custom authentication handler at `/auth` +- Proper redirect handling for confirmation emails +- Automatic routing from hash-based tokens to query parameters + +**If you're still getting confirmation email issues:** 1. Go to https://app.netlify.com/sites/ym1ktc/settings/identity -2. If Identity is not enabled, click "Enable Identity" -3. Go to Services tab and enable "Git Gateway" -4. Wait a few minutes for services to activate -5. Try accessing `/admin/` again +2. Check that Identity is enabled +3. Go to Services tab and ensure "Git Gateway" is enabled +4. The confirmation links should now work properly ### Common Issues: diff --git a/public/_redirects b/public/_redirects index 4412301..682e3ae 100644 --- a/public/_redirects +++ b/public/_redirects @@ -1 +1,7 @@ +# Handle Netlify Identity authentication flows +/#confirmation_token=* /auth?confirmation_token=:splat 200 +/#recovery_token=* /auth?recovery_token=:splat 200 +/#invite_token=* /auth?invite_token=:splat 200 + +# Admin panel redirect /admin/* /decapcms/index.html 200 \ No newline at end of file diff --git a/public/netlify.toml b/public/netlify.toml new file mode 100644 index 0000000..e98b37e --- /dev/null +++ b/public/netlify.toml @@ -0,0 +1,22 @@ +[build] + publish = "dist" + +[[redirects]] + from = "/#confirmation_token=*" + to = "/auth?confirmation_token=:splat" + status = 200 + +[[redirects]] + from = "/#recovery_token=*" + to = "/auth?recovery_token=:splat" + status = 200 + +[[redirects]] + from = "/#invite_token=*" + to = "/auth?invite_token=:splat" + status = 200 + +[[redirects]] + from = "/admin/*" + to = "/decapcms/index.html" + status = 200 \ No newline at end of file diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 21667e8..f6cce8d 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -52,6 +52,18 @@ const { language, textDirection } = I18N; + + +
+Kimlik doğrulama işlemi yapılıyor...
+