Skip to content

Commit

Permalink
avoid https prefix in redirect target
Browse files Browse the repository at this point in the history
  • Loading branch information
biwek committed Nov 22, 2020
1 parent e0a7d9d commit 7c4cd59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion https-portal/nginx-conf/default.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ server {

<% if domain.redirect_target_url %>
location / {
return 301 https://<%= domain.redirect_target_url %>$request_uri;
return 301 <%= domain.redirect_target_url %>$request_uri;
}
<% else %>
location / {
Expand Down
2 changes: 1 addition & 1 deletion https-portal/nginx-conf/default.ssl.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ server {
}
<% elsif domain.redirect_target_url %>
location / {
return 301 https://<%= domain.redirect_target_url %>$request_uri;
return 301 <%= domain.redirect_target_url %>$request_uri;
}
<% else %>
location / {
Expand Down

0 comments on commit 7c4cd59

Please sign in to comment.