You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2016/01/08 20:30:36 UTC

[31/50] [abbrv] allura git commit: [7919] Redirect to new tool after it is created

[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 <he...@gmail.com>
Authored: Fri Dec 11 15:53:45 2015 -0500
Committer: Dave Brondsema <da...@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):