mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Use user_registration_path instead of hardcoded /accounts for deployments into sub-directories...
This commit is contained in:
parent
18968a05b1
commit
9d72775c29
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
def after_sign_in_path_for(resource)
|
||||
if not session[:return_to].start_with?('/accounts')
|
||||
if not session[:return_to].start_with?(user_registration_path)
|
||||
logger.debug "Returning to #{session[:return_to]}"
|
||||
session[:return_to]
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue