aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-05-09 17:08:53 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2012-05-09 17:09:07 +0200
commita5eea71f5d601d679489f13856f03e9f103c7ff7 (patch)
tree8dbc804f81612a87f1b6e9ae9b848e3300185b3e /sonar-server
parent0671edfff305733d1327425e81ef0d14be09f4a0 (diff)
downloadsonarqube-a5eea71f5d601d679489f13856f03e9f103c7ff7.tar.gz
sonarqube-a5eea71f5d601d679489f13856f03e9f103c7ff7.zip
Replace urls starting with /session by /sessions
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/config/routes.rb1
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/lib/authenticated_system.rb2
2 files changed, 1 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/config/routes.rb b/sonar-server/src/main/webapp/WEB-INF/config/routes.rb
index f10a537e29a..c50f2280fa5 100644
--- a/sonar-server/src/main/webapp/WEB-INF/config/routes.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/config/routes.rb
@@ -2,7 +2,6 @@ ActionController::Routing::Routes.draw do |map|
map.connect 'users/select_group', :controller => 'users', :action => 'select_group'
map.connect 'users/set_groups', :controller => 'users', :action => 'set_groups'
map.resources :users
- map.resource :session
# used only for the events widget
map.resources :events
diff --git a/sonar-server/src/main/webapp/WEB-INF/lib/authenticated_system.rb b/sonar-server/src/main/webapp/WEB-INF/lib/authenticated_system.rb
index e5f7711a472..92ea9abae75 100644
--- a/sonar-server/src/main/webapp/WEB-INF/lib/authenticated_system.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/lib/authenticated_system.rb
@@ -67,7 +67,7 @@ module AuthenticatedSystem
if logged_in?
flash[:loginerror]='You are not authorized to access this page. Please log in with more privileges and try again.'
end
- redirect_to new_session_path
+ redirect_to url_for :controller => 'sessions', :action => 'new'
end
# format.any doesn't work in rails version < http://dev.rubyonrails.org/changeset/8987
# Add any other API formats here. (Some browsers, notably IE6, send Accept: */* and trigger