Skip to content

Commit

Permalink
Merge pull request #4770 from g-rock/see-datasets-on-login
Browse files Browse the repository at this point in the history
Store route after login in a config variable
  • Loading branch information
smotornyuk committed May 25, 2019
2 parents 811fd44 + 6edfb7b commit 1533e5b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ckan/views/user.py
Expand Up @@ -123,7 +123,10 @@ def index():


def me():
route = u'dashboard.index' if g.user else u'user.login'
if g.user:
route = config.get(u'ckan.route_after_login', u'dashboard.index')
else:
route = u'user.login'
return h.redirect_to(route)


Expand Down

0 comments on commit 1533e5b

Please sign in to comment.