Use virtual paths for package details

Extend the routing front/back ends to allow for using
"/package/$pkgname/" for individual packages.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2012-07-14 01:57:19 +02:00
parent 2425f963f8
commit 03486c3b6f
10 changed files with 40 additions and 15 deletions

View file

@ -400,7 +400,7 @@ if ($uid):
# Entire package creation process is atomic
end_atomic_commit($dbh);
header('Location: ' . get_uri('/packages/') . '?ID=' . $packageID);
header('Location: ' . get_pkg_uri($pkg_name));
}
chdir($cwd);