summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/html/packages.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/html/packages.php b/web/html/packages.php
index 046a942..e03a099 100644
--- a/web/html/packages.php
+++ b/web/html/packages.php
@@ -98,6 +98,12 @@ if (check_token()) {
} elseif (current_action("do_ChangeCategory")) {
list($ret, $output) = pkg_change_category($pkgid, $atype);
}
+
+ if ($ret) {
+ /* Redirect back to package page on success. */
+ header('Location: ' . get_pkg_uri($pkgname));
+ exit();
+ }
}
# Get package details after package actions have been attempted, FS#34508