Commit 5c96fad1 authored by mgabdev's avatar mgabdev

Fixed issues with routing/urls for log in

• Fixed:
- issues with routing/urls for log in
parent 42bc1019
......@@ -52,13 +52,7 @@ class Auth::SessionsController < Devise::SessionsController
end
def after_sign_in_path_for(resource)
last_url = stored_location_for(:user)
if home_paths(resource).include?(last_url)
root_path
else
last_url || root_path
end
return '/home'
end
def after_sign_out_path_for(_resource_or_scope)
......
......@@ -50,7 +50,7 @@ export default class LoggedOutNavigationBar extends PureComponent {
isOutline
color='white'
backgroundColor='none'
href='/auth/log_in'
href='/auth/sign_in'
className={[_s.borderColorWhite, _s.mr5, _s.flexGrow1, _s.alignItemsCenter, _s.justifyContentCenter, _s.py7].join(' ')}
>
<Text color='inherit' weight='medium' align='center'>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment