Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LEAF-4614 - double slash #2658

Merged
merged 5 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docker/nginx/leaf_nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ server {
root /var/www/html;
index index.php index.html index.htm;

# if slashes appear in the uri, we want to remove them.
if ($request_uri ~ "//") {
return 301 $uri$is_args$args;
}

#this is for everything except gallery.php and svgs since those need to load still
location ~* ^(.*)/libs/dynicons(?!(/gallery.php|/(.*).svg)){

Expand Down
Loading