forked from OpenNeo/impress
add ?return_to to login urls
This commit is contained in:
parent
db99f70255
commit
bfb53ee81f
2 changed files with 5 additions and 1 deletions
|
@ -13,4 +13,8 @@ module ApplicationHelper
|
|||
content_tag 'p', value, :class => key
|
||||
end
|
||||
end
|
||||
|
||||
def login_path_with_return_to
|
||||
login_path :return_to => request.request_uri
|
||||
end
|
||||
end
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
== You have #{current_user.points} points.
|
||||
= link_to 'Log out', logout_path
|
||||
- else
|
||||
= link_to login_path, :id => 'userbar-log-in' do
|
||||
= link_to login_path_with_return_to, :id => 'userbar-log-in' do
|
||||
= image_tag auth_server_icon_url
|
||||
%span Log in
|
||||
#footer
|
||||
|
|
Loading…
Reference in a new issue