From de367ae19481d4266b016e46221973f383073110 Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Mon, 27 Aug 2018 16:59:05 +1000 Subject: [PATCH] Fix redirection config bug --- src/backend/templates/redirection_host.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/templates/redirection_host.conf b/src/backend/templates/redirection_host.conf index da40e5c..9d51a92 100644 --- a/src/backend/templates/redirection_host.conf +++ b/src/backend/templates/redirection_host.conf @@ -16,9 +16,9 @@ server { {% include "_forced_ssl.conf" %} {% if preserve_path == 1 or preserve_path == true %} - return 301 $scheme://{{ forward_domain_name }}$request_uri$request_uri; - {% else %} return 301 $scheme://{{ forward_domain_name }}$request_uri; + {% else %} + return 301 $scheme://{{ forward_domain_name }}; {% endif %} } }