From 626f54fd5e3fdebdb810be175fe3f1debec44fe8 Mon Sep 17 00:00:00 2001 From: Jason Thomas Date: Tue, 30 Jul 2024 15:58:52 +0100 Subject: [PATCH] remove /ui rewrite rule from nginx vhost config --- ui/container-files/etc/nginx/conf.d/default.conf | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ui/container-files/etc/nginx/conf.d/default.conf b/ui/container-files/etc/nginx/conf.d/default.conf index c8ba0f51a..c5c66c3ed 100644 --- a/ui/container-files/etc/nginx/conf.d/default.conf +++ b/ui/container-files/etc/nginx/conf.d/default.conf @@ -38,10 +38,7 @@ server { rewrite ^/user(.*)$ /en/users$1; rewrite ^/assertion(.*)$ /en/affiliations$1; - # Temporary Rule, when the UI app is served from the root instead of `/ui` then this rewrite rule can be removed. - rewrite ^/ui/(.*)$ /$1 last; - - # 1.) /$ -> /en/index.html + # 1.) if no langCode in path eg '/' then default to /en/index.html try_files /ui/en/index.html /ui/en/index.html; # 2.) /$ -> //index.html