Skip to content

Commit

Permalink
fix: query-params should not duplicate at rewrite (#945)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eisie96 authored Dec 9, 2021
1 parent 7fa4f3b commit 498ecbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nginx/templates/multi-channel.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ server {
auth_basic off;
{{ $first := index $mapping 0 -}}
rewrite ^/$ "$scheme://$http_host{{ $first.baseHref }}/home" permanent;
rewrite ^(.*)$ "$scheme://$http_host{{ $first.baseHref }}$request_uri" permanent;
rewrite ^(.*)$ "$scheme://$http_host{{ $first.baseHref }}$request_uri?" permanent;
}
location ^~ /sitemap_ {
{{- tmpl.Exec "LOCATION_TEMPLATE_FOR_SITEMAP" $first }}
Expand Down

0 comments on commit 498ecbe

Please sign in to comment.