Skip to content

Commit

Permalink
remove /ui rewrite rule from nginx vhost config
Browse files Browse the repository at this point in the history
  • Loading branch information
jthomas-orcid committed Jul 30, 2024
1 parent b4aace5 commit 626f54f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ui/container-files/etc/nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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.) /<langCode>$ -> /<langCode>/index.html
Expand Down

0 comments on commit 626f54f

Please sign in to comment.