diff MoinMoin/themes/__init__.py @ 2937:456c68761e96

merge
author RogerHaase <haaserd@gmail.com>
date Tue, 28 Apr 2015 12:17:55 -0700
parents f09bf7d9578e 08007ac96dda
children afe523052a7f
line wrap: on
line diff
--- a/MoinMoin/themes/__init__.py	Mon Apr 27 22:07:21 2015 +0200
+++ b/MoinMoin/themes/__init__.py	Tue Apr 28 12:17:55 2015 -0700
@@ -439,7 +439,7 @@
 
     # Properties ##############################################################
 
-    def login_url(self):
+    def login_url(self, next_url=None):
         """
         Return URL usable for user login
 
@@ -448,9 +448,9 @@
         """
         url = None
         if self.cfg.auth_login_inputs == ['special_no_input']:
-            url = url_for('frontend.login', login=1)
+            url = url_for('frontend.login', login=1, next=next_url)
         if self.cfg.auth_have_login:
-            url = url or url_for('frontend.login')
+            url = url or url_for('frontend.login', next=next_url)
         return url
 
     def get_fqnames(self, fqname):