]> git.openstreetmap.org Git - rails.git/commitdiff
Redirect short links properly
authorTom Hughes <tom@compton.nu>
Tue, 6 Aug 2013 09:58:54 +0000 (10:58 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 6 Aug 2013 09:58:54 +0000 (10:58 +0100)
app/controllers/site_controller.rb

index b1239d0daa5f16e493e46a2568144d3fbd4dbf07..3b0a19cf91d70d2c516076ca4ab71074fe1dc886 100644 (file)
@@ -42,7 +42,7 @@ class SiteController < ApplicationController
 
     new_params[:controller] = 'site'
     new_params[:action] = 'index'
-    new_params[:anchor] = "#{zoom}/#{lat}/#{lon}"
+    new_params[:anchor] = "map=#{zoom}/#{lat}/#{lon}"
 
     redirect_to new_params
   end