From: Tom Hughes Date: Tue, 6 Aug 2013 09:58:54 +0000 (+0100) Subject: Redirect short links properly X-Git-Tag: live~4806 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/99c48285df6fc306504b4cf9c12547bd5af6bee7 Redirect short links properly --- diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index b1239d0da..3b0a19cf9 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -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