X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/33a6b79bd78f1903011367f6a5adf2f91d160f74..e838dddf12eab85e43683cb07f1f0c4619d7a47e:/app/controllers/site_controller.rb diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index 4945aaa4f..32a0f8cb5 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -97,7 +97,15 @@ class SiteController < ApplicationController anchor << "layers=N" end - if anchor.present? + if params[:node] + redirect_to node_path(params[:node]) + elsif params[:way] + redirect_to way_path(params[:way]) + elsif params[:relation] + redirect_to relation_path(params[:relation]) + elsif params[:note] + redirect_to browse_note_path(params[:note]) + elsif anchor.present? redirect_to params.merge(:anchor => anchor.join('&')) end end