Index: modules/web/templates/adblockplus.org.conf.erb |
diff --git a/modules/web/templates/adblockplus.org.conf.erb b/modules/web/templates/adblockplus.org.conf.erb |
index 8279f13e5b3bce72689764bdfbb2c5dfc71ad839..faaad4a3b3b9a415dbe44cbe262bb9046311dd44 100644 |
--- a/modules/web/templates/adblockplus.org.conf.erb |
+++ b/modules/web/templates/adblockplus.org.conf.erb |
@@ -171,6 +171,10 @@ location /redirect |
set $link "share"; |
set $anchor "?a=minimal"; |
} |
+ if ($arg_link = "uninstalled") |
+ { |
+ set $link "uninstalled"; |
+ } |
if ($arg_link = "gettingStarted") |
{ |
set $link "getting_started"; |
@@ -240,6 +244,11 @@ location /redirect |
{ |
rewrite ^ https://share.adblockplus.org/$lang/? redirect; |
} |
+ if ($link = "uninstalled") |
+ { |
+ # For the uninstallation page we need to preserve the query parameters |
Sebastian Noack
2015/12/14 12:38:37
We probably should strip the "link" parameter. Any
kzar
2015/12/14 12:44:11
Sure it's redundant but it doesn't harm. I couldn'
Felix Dahlke
2015/12/14 12:49:10
I thought about this as well, but AFAIK there's no
kzar
2015/12/14 12:59:12
My vote is to leave it as-is, it's simple and it w
Sebastian Noack
2015/12/14 13:17:25
Well, this certainly isn't something that would de
|
+ rewrite ^ /$lang/$link redirect; |
+ } |
rewrite ^ /$lang/$link$anchor? redirect; |
} |