X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2e2c95133bc1631b980a9a721502123ee046dffb..7d45c2fd3c1a968de487de1afab947a06424d22b:/app/controllers/message_controller.rb diff --git a/app/controllers/message_controller.rb b/app/controllers/message_controller.rb index 8f67328e7..d97ca1bef 100644 --- a/app/controllers/message_controller.rb +++ b/app/controllers/message_controller.rb @@ -57,7 +57,7 @@ class MessageController < ApplicationController render :action => 'new' else flash[:notice] = t 'message.reply.wrong_user', :user => @user.display_name - redirect_to :controller => "user", :action => "login", :referer => request.request_uri + redirect_to :controller => "user", :action => "login", :referer => request.fullpath end rescue ActiveRecord::RecordNotFound @title = t'message.no_such_message.title' @@ -74,7 +74,7 @@ class MessageController < ApplicationController @message.save else flash[:notice] = t 'message.read.wrong_user', :user => @user.display_name - redirect_to :controller => "user", :action => "login", :referer => request.request_uri + redirect_to :controller => "user", :action => "login", :referer => request.fullpath end rescue ActiveRecord::RecordNotFound @title = t'message.no_such_message.title'