Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/web/templates/adblockplus.org.conf.erb

Issue 29332588: Issue 3403 - Add web redirect for the uninstallation page (Closed)
Patch Set: Renamed uninstall-abp uninstalled, added comment Created Dec. 14, 2015, 10:43 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld