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: Created Dec. 13, 2015, 5:22 p.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..3dd11214cad6dada3d75016cc3f1ef20c40c0cac 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")
Felix Dahlke 2015/12/14 10:23:26 Since you're not matching a regex, you can just us
kzar 2015/12/14 10:45:49 Done.
+ {
+ set $link "uninstall-abp";
+ }
if ($arg_link = "gettingStarted")
{
set $link "getting_started";
@@ -240,6 +244,10 @@ location /redirect
{
rewrite ^ https://share.adblockplus.org/$lang/? redirect;
}
+ if ($link = "uninstall-abp")
+ {
+ rewrite ^ /$lang/$link$anchor redirect;
kzar 2015/12/13 17:25:40 This is required because we want to preserve query
Felix Dahlke 2015/12/14 10:23:26 So you mean, this: https://adblockplus.org/redire
kzar 2015/12/14 10:45:49 Yep, although we've just agreed in IRC to rename u
Felix Dahlke 2015/12/14 11:21:16 Awesome, I was about to suggest that, but didn't b
+ }
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