diff options
author | ubq323 <ubq323> | 2021-06-12 22:58:01 +0000 |
---|---|---|
committer | ubq323 <ubq323> | 2021-06-12 22:58:01 +0000 |
commit | e32815acc670428bdef698cdaec692cf5bcd8ae6 (patch) | |
tree | a3375f4c2582a71a55095ae1a783bee822395faa /apioforum/templates/base.html | |
parent | 7c84ebbb1a73527cb50f7536df8ad47ef9331a2c (diff) |
auth pages less irritating
Diffstat (limited to 'apioforum/templates/base.html')
-rw-r--r-- | apioforum/templates/base.html | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/apioforum/templates/base.html b/apioforum/templates/base.html index 847b8b2..f81f413 100644 --- a/apioforum/templates/base.html +++ b/apioforum/templates/base.html @@ -17,10 +17,22 @@ {% if g.user %} <li>{{ g.user }}</li> - <li><a href="{{ url_for('auth.logout') }}">logout</a></li> + <li> + <a href="{{ url_for('auth.logout',next=request.path) }}"> + logout + </a> + </li> {% else %} - <li><a href="{{ url_for('auth.login') }}">login</a></li> - <li><a href="{{ url_for('auth.register') }}">register</a></li> + <li> + <a href="{{ url_for('auth.login',next=request.path) }}"> + login + </a> + </li> + <li> + <a href="{{ url_for('auth.register',next=request.path) }}"> + register + </a> + </li> {% endif %} </ul> </nav> |