X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f9d714dfd36fa56ced4c0a99a6e59c945ff89cca..a45af012b4c0a3f3d92bbe3da4a96356c31e2b4b:/app/controllers/site_controller.rb diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index b1239d0da..b2212645c 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 @@ -59,6 +59,8 @@ class SiteController < ApplicationController return end + @extra_body_class = "site-edit-#{editor}" + if params[:node] bbox = Node.find(params[:node]).bbox.to_unscaled @lat = bbox.centre_lat