From 06a72d20b00789c078711a3f13baf7d5d44ad52c Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Wed, 18 Feb 2015 13:17:59 +0100 Subject: [PATCH] SONAR-5659 Issues link parameters disappear when fail to log --- .../webapp/WEB-INF/app/controllers/sessions_controller.rb | 1 + .../main/webapp/WEB-INF/app/views/sessions/login.html.erb | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/sessions_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/sessions_controller.rb index 7a7600afa03..cb94561ab1e 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/sessions_controller.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/sessions_controller.rb @@ -35,6 +35,7 @@ class SessionsController < ApplicationController end redirect_back_or_default(home_url) else + @return_to_anchor = params[:return_to_anchor] flash.now[:loginerror] = message('session.flash_notice.authentication_failed') end end diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/login.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/login.html.erb index 0382575d0e2..527ba5e18dd 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/login.html.erb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/login.html.erb @@ -3,7 +3,7 @@
- +

<%= label_tag message('login') %>

<%= text_field_tag 'login', '', {:maxlength => 255, :disabled => false, :style => 'width:200px;'} %> @@ -31,5 +31,7 @@ -- 2.39.5