Index: /main/waeup.kofa/trunk/src/waeup/kofa/mandates/browser.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/mandates/browser.py	(revision 13989)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/mandates/browser.py	(revision 13990)
@@ -49,5 +49,6 @@
 
     def render(self):
-        self.flash(self.msg)
-        self.redirect(self.url(self.context, self.redirect_path))
+        if self.msg:
+            self.flash(self.msg, type='warning')
+        self.redirect(self.url(self.context) + self.redirect_path)
         return
Index: /main/waeup.kofa/trunk/src/waeup/kofa/mandates/mandate.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/mandates/mandate.py	(revision 13989)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/mandates/mandate.py	(revision 13990)
@@ -78,5 +78,5 @@
             grok.getSite().logger.info(
                 'PasswordMandate used: %s ' % username)
-            redirect_path = 'login'
+            redirect_path = '/login'
         del self.__parent__[self.mandate_id]
         return msg, redirect_path
Index: /main/waeup.kofa/trunk/src/waeup/kofa/mandates/tests.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/mandates/tests.py	(revision 13989)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/mandates/tests.py	(revision 13990)
@@ -113,5 +113,5 @@
         self.assertEqual(msg,
             'Password has been successfully set. Login with your new password.')
-        self.assertEqual(redirect_path, 'login')
+        self.assertEqual(redirect_path, '/login')
         self.assertTrue(IUserAccount(student).checkPassword('mypwd1'))
         # All mandates have been removed.
@@ -133,5 +133,5 @@
         self.assertEqual(msg,
             'Password has been successfully set. Login with your new password.')
-        self.assertEqual(redirect_path, 'login')
+        self.assertEqual(redirect_path, '/login')
         self.assertTrue(IUserAccount(officer).checkPassword('mypwd1'))
         logfile = os.path.join(
@@ -151,5 +151,5 @@
         self.assertEqual(msg,
             'Password has been successfully set. Login with your new password.')
-        self.assertEqual(redirect_path, 'login')
+        self.assertEqual(redirect_path, '/login')
         self.assertTrue(IUserAccount(applicant).checkPassword('mypwd1'))
         logfile = os.path.join(
@@ -213,9 +213,9 @@
             % mandate.mandate_id)
         self.assertTrue('No mandate' in self.browser.contents)
-        self.assertEqual(self.browser.url, 'http://localhost/app/')
+        self.assertEqual(self.browser.url, 'http://localhost/app')
         # Mandate id is needed
         self.browser.open('http://localhost/app/mandate')
         self.assertTrue('Misuse' in self.browser.contents)
-        self.assertEqual(self.browser.url, 'http://localhost/app/')
+        self.assertEqual(self.browser.url, 'http://localhost/app')
 
     def test_refereereport_mandate(self):
