From 1b5308406234030cfba4c212d1babebf9e30b918 Mon Sep 17 00:00:00 2001 From: Alexis Date: Wed, 13 May 2026 14:16:43 +0200 Subject: [PATCH] fix(nginx): replace rewrite rules with try_files for /flintstones and /orcid2words to enhance SPA functionality and prevent 404 errors --- frontend/nginx.conf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/nginx.conf b/frontend/nginx.conf index dc81a66..97e871a 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -17,8 +17,7 @@ server { } location = /flintstones { - # Sin 301: Apache puede reescribir `Location` y exponer puerto interno (p. ej. :5173) y bucles. - rewrite ^ /flintstones/ last; + try_files /index.html =404; } location ^~ /orcid2words/ { @@ -27,7 +26,7 @@ server { } location = /orcid2words { - rewrite ^ /orcid2words/ last; + try_files /index.html =404; } location / {