]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
Merge pull request #35 from tomhughes/routing
[rails.git] / app / controllers / site_controller.rb
index df11a275aeae34eae7516b3ed91f3720d6ea53c7..e76ee97f6342c8a90c7e4184ebc2328b35d82025 100644 (file)
@@ -52,7 +52,7 @@ class SiteController < ApplicationController
       new_params[:anchor] += "&layers=#{params[:layers]}"
     end
 
       new_params[:anchor] += "&layers=#{params[:layers]}"
     end
 
-    redirect_to new_params
+    redirect_to Hash[new_params]
   end
 
   def key
   end
 
   def key
@@ -151,7 +151,7 @@ class SiteController < ApplicationController
     end
 
     if anchor.present?
     end
 
     if anchor.present?
-      redirect_to params.merge(:anchor => anchor.join('&'))
+      redirect_to Hash[params].merge(:anchor => anchor.join('&'))
     end
   end
 end
     end
   end
 end