changeset 2920:95d55587c704 reyha_verma/fixes-482-1426427038125

edited the redirection link.
author Reyha Verma <reyhaverma@gmail.com>
date Mon, 23 Mar 2015 17:39:21 +0000
parents 8431d0d48515
children 3862a0aede87 a3299ab946b6
files MoinMoin/apps/frontend/views.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/views.py	Sun Mar 15 13:44:06 2015 +0000
+++ b/MoinMoin/apps/frontend/views.py	Mon Mar 23 17:39:21 2015 +0000
@@ -1570,7 +1570,7 @@
 @frontend.route('/+login', methods=['GET', 'POST'])
 def login():
     if flaskg.user.valid:
-        return redirect('Home')
+        return redirect(url_for('.show_root'))
 
 
 # TODO use ?next=next_location check if target is in the wiki and not outside domain