From a5eea71f5d601d679489f13856f03e9f103c7ff7 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Wed, 9 May 2012 17:08:53 +0200 Subject: [PATCH] Replace urls starting with /session by /sessions --- sonar-server/src/main/webapp/WEB-INF/config/routes.rb | 1 - .../src/main/webapp/WEB-INF/lib/authenticated_system.rb | 2 +- 2 files changed, 1 insertion(+), 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 -- 2.39.5