From 009c5b510db91b9c25b02e57e1bb27159875bad5 Mon Sep 17 00:00:00 2001 From: Jason Thomas Date: Wed, 29 May 2024 23:11:46 +0100 Subject: [PATCH] redirect requests for / to /en to mitigate removal of localisation {L34} --- ui/container-files/etc/nginx/conf.d/default.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/container-files/etc/nginx/conf.d/default.conf b/ui/container-files/etc/nginx/conf.d/default.conf index 1f42fb59d..65c15c05f 100644 --- a/ui/container-files/etc/nginx/conf.d/default.conf +++ b/ui/container-files/etc/nginx/conf.d/default.conf @@ -25,7 +25,9 @@ server { root /usr/share/nginx/html; index index.html index.htm; - try_files $uri $uri/en/index.html; + # Modify this rule by removing '/ui' when the UI app is moved to the URL root dir '/' and the old Gateway App is decomissioned. + # And also you will need to update the base-href setting in the index.html file to '/'. + try_files /ui/en /ui/en/index.html; # Disable Caching sendfile off;