Redirect app root to login when visiting /generadorexamenesllm without a session.

This fixes the blank page on the base URL by normalizing the no-trailing-slash path in nginx and redirecting unauthenticated users to /login before React mounts.
This commit is contained in:
Mireya Cueto Garrido
2026-06-03 12:45:24 +02:00
parent d06b961a73
commit 182eae1e36
5 changed files with 52 additions and 2 deletions
+5
View File
@@ -50,6 +50,11 @@ server {
try_files $uri =404;
}
# Raíz sin barra final → login (evita pantalla en blanco por basename)
location = /generadorexamenesllm {
return 301 /generadorexamenesllm/login;
}
location / {
try_files $uri $uri/ /index.html;
}