]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Don't highlight selected items in the data layer
[rails.git] / app / controllers / application_controller.rb
index d0898bf5e4f1b5fa098128c851c703da096c4b86..bb32e7e6e5cbbe25da6787efc37dce39266e8c8d 100644 (file)
@@ -349,7 +349,7 @@ class ApplicationController < ActionController::Base
     elsif current_user
       set_locale
       respond_to do |format|
-        format.html { redirect_to :controller => "errors", :action => "forbidden" }
+        format.html { redirect_to :controller => "/errors", :action => "forbidden" }
         format.any { report_error t("application.permission_denied"), :forbidden }
       end
     elsif request.get?
@@ -397,7 +397,7 @@ class ApplicationController < ActionController::Base
       referer = nil
     end
 
-    referer.to_s
+    referer&.to_s
   end
 
   def scope_enabled?(scope)