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

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

Issue 29582701: #4511 - Reverse order of redirects (Closed) Base URL: https://hg1/infrastructure
Patch Set: Created Oct. 18, 2017, 9:10 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/adblockplus/templates/web/redirector.conf.erb
===================================================================
--- a/modules/adblockplus/templates/web/redirector.conf.erb
+++ b/modules/adblockplus/templates/web/redirector.conf.erb
@@ -3,7 +3,7 @@
# http://hub.eyeo.com/issues/1975
location /
{
-<%- @targets.sort.each do |key, target| -%>
+<%- @targets.sort.reverse.each do |key, target| -%>
rewrite ^/<%= key %>(/.*)?$ "<%= target %>" break;
<%- end -%>
rewrite ^(/.*)$ "<%= @default %>" last;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld