]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
Add about page
[rails.git] / app / controllers / site_controller.rb
index 4945aaa4ff2793457ff0caccd2a20afd321cb411..0f06b22833d63c300e8a2a572ddd58377e1b9773 100644 (file)
@@ -74,6 +74,9 @@ class SiteController < ApplicationController
   def help
   end
 
+  def about
+  end
+
   def preview
     render :text => RichText.new(params[:format], params[:text]).to_html
   end
@@ -97,7 +100,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