diff options
author | Rhenium <rhenium@rhe.jp> | 2013-11-18 21:53:06 +0900 |
---|---|---|
committer | Rhenium <rhenium@rhe.jp> | 2013-11-18 21:53:06 +0900 |
commit | a30d696c1c57d42cabdecb3c06e15e60bb6de21c (patch) | |
tree | aa2a405cfcd8e0d1410f16c358e9967da0254102 /app/views/layouts/_base.html.haml | |
parent | 070fafaf8b937f71891526a4d877682b35242085 (diff) | |
download | aclog-a30d696c1c57d42cabdecb3c06e15e60bb6de21c.tar.gz |
redirect to previous page after login
Diffstat (limited to 'app/views/layouts/_base.html.haml')
-rw-r--r-- | app/views/layouts/_base.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/_base.html.haml b/app/views/layouts/_base.html.haml index a64cd34..b8dc277 100644 --- a/app/views/layouts/_base.html.haml +++ b/app/views/layouts/_base.html.haml @@ -21,6 +21,6 @@ %li= link_to "logout", logout_path %li= link_to "@" + session[:account].user.screen_name, user_path(session[:account].user.screen_name) - else - %li= link_to "login", "/i/login" + %li= link_to "login", "/i/login?redirect_after_login=" + CGI.escape(request.fullpath) .container = yield |