X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c9e9ef1a89b7589031a4f97517d6e5dc5636fcc7..41af7f5ea79889da3a462a90f4fcdc01c31ba0cc:/app/controllers/site_controller.rb diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index df11a275a..e76ee97f6 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -52,7 +52,7 @@ class SiteController < ApplicationController new_params[:anchor] += "&layers=#{params[:layers]}" end - redirect_to new_params + redirect_to Hash[new_params] end def key @@ -151,7 +151,7 @@ class SiteController < ApplicationController end if anchor.present? - redirect_to params.merge(:anchor => anchor.join('&')) + redirect_to Hash[params].merge(:anchor => anchor.join('&')) end end end