X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c9e9ef1a89b7589031a4f97517d6e5dc5636fcc7..38b9f8f7927f09b32a94df87d1264f568f620480:/app/controllers/site_controller.rb?ds=sidebyside 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