Fix forms: return JSON instead of redirect for AJAX compatibility

- send_plan.php: replace redirect with JSON response
- send_ask.php: replace redirect with JSON response
- Fixes white page issue (fetch API doesn't follow redirects)
- Update .gitignore: allow forms folder but protect .env file
This commit is contained in:
Kirik
2025-10-27 15:35:46 +01:00
parent a34a81e0a1
commit 776dbb5e76
7 changed files with 782 additions and 1 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ gitea.pub
telegram/
migration-s3/
INFO/
forms/
forms/.env
# Debug and test pages - не для продакшена
static/debug-*.html