allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [31/50] [abbrv] allura git commit: [7919] Redirect to new tool after it is created
Date Fri, 08 Jan 2016 19:30:36 GMT
[7919] Redirect to new tool after it is created


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

Branch: refs/heads/master
Commit: ffea9dc1810a72b69a6ffb4455ebc9cd27c9b184
Parents: 4f50aaf
Author: Heith Seewald <heiths@gmail.com>
Authored: Fri Dec 11 15:53:45 2015 -0500
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Fri Jan 8 14:06:17 2016 -0500

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


http://git-wip-us.apache.org/repos/asf/allura/blob/ffea9dc1/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 3f4a1db..236bf96 100644
--- a/Allura/allura/ext/admin/admin_main.py
+++ b/Allura/allura/ext/admin/admin_main.py
@@ -735,12 +735,11 @@ class ProjectAdminController(BaseController):
         try:
             new_app = self._update_mounts(subproject, tool, new, **kw)
             if new_app:
-                # force redir to last page of tools, where new app will be
-                page = ''
+                redirect(new_app.url)
         except forge_exc.ForgeError, exc:
             flash('%s: %s' % (exc.__class__.__name__, exc.args[0]),
                   'error')
-        redirect('tools?limit=%s&page=%s' % (limit, page))
+        redirect(request.referer)
 
     @expose('jinja:allura.ext.admin:templates/export.html')
     def export(self, tools=None):


Mime
View raw message