Skip to content

Commit

Permalink
redirect requests for / to /en to mitigate removal of localisation {L34}
Browse files Browse the repository at this point in the history
  • Loading branch information
jthomas-orcid committed May 29, 2024
1 parent 08cc64d commit 009c5b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/container-files/etc/nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 009c5b5

Please sign in to comment.