allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [3/3] allura git commit: [#8225] Redirect if current object is deleted
Date Thu, 04 Oct 2018 16:46:30 GMT
[#8225] Redirect if current object is deleted


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/abf425b0
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/abf425b0
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/abf425b0

Branch: refs/heads/master
Commit: abf425b0dc87c68b120d491d0f1062668ca17732
Parents: 1a10d0d
Author: Shalitha Suranga <shalithasuranga@gmail.com>
Authored: Tue Oct 2 15:13:49 2018 +0530
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Thu Oct 4 15:46:17 2018 +0000

----------------------------------------------------------------------
 Allura/allura/ext/admin/admin_main.py | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/abf425b0/Allura/allura/ext/admin/admin_main.py
----------------------------------------------------------------------
diff --git a/Allura/allura/ext/admin/admin_main.py b/Allura/allura/ext/admin/admin_main.py
index c2d8239..c3651e0 100644
--- a/Allura/allura/ext/admin/admin_main.py
+++ b/Allura/allura/ext/admin/admin_main.py
@@ -703,6 +703,8 @@ class ProjectAdminController(BaseController):
         except forge_exc.ForgeError, exc:
             flash('%s: %s' % (exc.__class__.__name__, exc.args[0]),
                   'error')
+        if re.search(tool[0]['mount_point']+ r'\/$', request.referer):
+            redirect('../')
         redirect(request.referer)
 
     @expose('jinja:allura.ext.admin:templates/export.html')


Mime
View raw message