Skip to content

Commit 62bd900

Browse files
committed
nginx: pass on invite tokens even for GET requests
1 parent 635bda1 commit 62bd900

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmdeploy/src/cmdeploy/nginx/nginx.conf.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ http {
8484
if ($request_method = GET) {
8585
# Redirect to Delta Chat,
8686
# which will in turn do a POST request.
87-
return 301 dcaccount:https://{{ config.domain_name }}/new;
87+
return 301 dcaccount:https://{{ config.domain_name }}$request_uri;
8888
}
8989

9090
fastcgi_pass unix:/run/fcgiwrap.socket;
@@ -101,7 +101,7 @@ http {
101101
# Redirects are only for browsers.
102102
location /cgi-bin/newemail.py {
103103
if ($request_method = GET) {
104-
return 301 dcaccount:https://{{ config.domain_name }}/new;
104+
return 301 dcaccount:https://{{ config.domain_name }}$request_uri;
105105
}
106106

107107
fastcgi_pass unix:/run/fcgiwrap.socket;

0 commit comments

Comments
 (0)