aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/layouts/_base.html.haml
diff options
context:
space:
mode:
authorRhenium <rhenium@rhe.jp>2013-11-18 21:53:06 +0900
committerRhenium <rhenium@rhe.jp>2013-11-18 21:53:06 +0900
commita30d696c1c57d42cabdecb3c06e15e60bb6de21c (patch)
treeaa2a405cfcd8e0d1410f16c358e9967da0254102 /app/views/layouts/_base.html.haml
parent070fafaf8b937f71891526a4d877682b35242085 (diff)
downloadaclog-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.haml2
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