When logging in from /welcome, redirect to index
Backend logic simplified, to support the next arg if provided, otherwise simply redirect to the request.referrer (last visited page).
This commit is contained in:
@@ -25,7 +25,7 @@ li
|
||||
|
||||
| {% block navigation_user %}
|
||||
li.nav-item-sign-in
|
||||
a.navbar-item(href="{{ url_for('users.login') }}")
|
||||
a.navbar-item(href="{{ url_for('users.login', next='/') }}")
|
||||
| {% if current_user.is_anonymous %}
|
||||
| Log in and Explore
|
||||
| {% else %}
|
||||
|
Reference in New Issue
Block a user