Skip to content

Commit

Permalink
keep the _next while doing the redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
Michele Comitini committed Nov 4, 2016
1 parent 4ea3182 commit 6b1225d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions gluon/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -3670,7 +3670,12 @@ def confirm_registration(self,
key = request.args[-1]
if key:
session._reset_password_key = key
redirect(self.url(args='confirm_registration'))
if next:
redirect_vars = {'_next': next}
else:
redirect_vars = {}
redirect(self.url(args='confirm_registration',
vars=redirect_vars))
else:
key = session._reset_password_key
else:
Expand Down Expand Up @@ -7065,4 +7070,4 @@ def save(self, options):

if __name__ == '__main__':
import doctest
doctest.testmod()
doctest.testmod()

0 comments on commit 6b1225d

Please sign in to comment.