 Issue 29481679:
  #1975 - Introduce class adblockplus::web::redirector  (Closed)
    
  
    Issue 29481679:
  #1975 - Introduce class adblockplus::web::redirector  (Closed) 
  | Index: modules/adblockplus/templates/web/redirector.conf.erb | 
| diff --git a/modules/adblockplus/templates/web/redirector.conf.erb b/modules/adblockplus/templates/web/redirector.conf.erb | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..245876d17450b60407f1c22c8b341456af895d3d | 
| --- /dev/null | 
| +++ b/modules/adblockplus/templates/web/redirector.conf.erb | 
| @@ -0,0 +1,11 @@ | 
| +# Puppet: <%= @title %> | 
| + | 
| +# http://hub.eyeo.com/issues/1975 | 
| +location / | 
| +{ | 
| +<%- @targets.sort.each do |key, target| -%> | 
| + rewrite ^/<%= key %>(/.*)?$ "<%= target %>" break; | 
| 
Fred
2017/07/06 17:17:27
Didn't we want to append the original query string
 
mathias
2017/07/06 17:23:54
We do. That is the default behavior of the Nginx r
 | 
| +<%- end -%> | 
| + rewrite ^/.*$ "<%= @default %>" last; | 
| +} | 
| + |