You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2016/01/20 19:55:03 UTC

allura git commit: Add login redirect to the nav "Log In" link

Repository: allura
Updated Branches:
  refs/heads/master 82ce4edb5 -> 58852a04e


Add login redirect to the nav "Log In" link


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/58852a04
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/58852a04
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/58852a04

Branch: refs/heads/master
Commit: 58852a04e2d3faf635e37d9e8fd7d80ccb5ab8a7
Parents: 82ce4ed
Author: Heith Seewald <he...@gmail.com>
Authored: Tue Jan 19 13:13:34 2016 -0500
Committer: Heith Seewald <he...@gmail.com>
Committed: Wed Jan 20 12:32:05 2016 -0500

----------------------------------------------------------------------
 Allura/allura/templates/jinja_master/theme_macros.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/58852a04/Allura/allura/templates/jinja_master/theme_macros.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/jinja_master/theme_macros.html b/Allura/allura/templates/jinja_master/theme_macros.html
index 25c3eb5..52365df 100644
--- a/Allura/allura/templates/jinja_master/theme_macros.html
+++ b/Allura/allura/templates/jinja_master/theme_macros.html
@@ -46,7 +46,7 @@ http://stackoverflow.com/questions/26582731/redefining-imported-jinja-macros
             {% if h.asbool(config.get('auth.allow_user_registration', True)) %}
               <a class="link-right" href="/auth/create_account">Register</a>
             {% endif %}
-            <a class="link-right" href="{{login_url}}">Log In</a>
+            <a class="link-right" href="{{login_url}}?return_to={{ h.urlquote(request.path_qs) }}">Log In</a>
           {% endif %}
         </nav>
     </div>