Skip to content

Commit

Permalink
updated explaination
Browse files Browse the repository at this point in the history
  • Loading branch information
jthomas-orcid committed May 30, 2024
1 parent 163d487 commit 79e1e98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/container-files/etc/nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ server {
# 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.) /$ -> /en/index.html
try_files /ui/en/index.html /ui/en/index.html;

# 2.) /<langCode> -> /<langCode>/index.html
# 2.) /<langCode>$ -> /<langCode>/index.html
location ~ ^/(cs|en|es|fr|it|ja|ko|pt|ru|zh-CN|zh-TW)$ {
try_files $uri $uri/index.html /$1/index.html?$args;
}

# 3.) /<langCode>/ -> /<langCode>/index.html
# 3.) /<langCode>/$ -> /<langCode>/index.html
location ~ ^/(cs|en|es|fr|it|ja|ko|pt|ru|zh-CN|zh-TW)/(.*)$ {
try_files $uri $uri/ /$1/index.html?$args;
}
Expand Down

0 comments on commit 79e1e98

Please sign in to comment.