Skip to content

Commit

Permalink
Merge pull request #1236 from ORCID/feature/remove_ui_rewrites_from_n…
Browse files Browse the repository at this point in the history
…ginx_config

remove /ui rewrite rule from nginx vhost config
  • Loading branch information
jthomas-orcid authored Jul 30, 2024
2 parents eb92642 + 626f54f commit 7148237
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 7148237

Please sign in to comment.