mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Do not show package base page of non-split packages
When trying to access the package base page of non-split packages, redirect to the package details page since the package base page doesn't contain any additional information in that case. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
ace64c96d3
commit
6ed9da2c3e
1 changed files with 6 additions and 0 deletions
|
@ -115,6 +115,12 @@ if (check_token()) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$pkgs = pkgbase_get_pkgnames($base_id);
|
||||||
|
if (count($pkgs) == 1) {
|
||||||
|
/* Not a split package. Redirect to the package page. */
|
||||||
|
header('Location: ' . get_pkg_uri($pkgs[0]));
|
||||||
|
}
|
||||||
|
|
||||||
$details = pkgbase_get_details($base_id);
|
$details = pkgbase_get_details($base_id);
|
||||||
html_header($title, $details);
|
html_header($title, $details);
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Reference in a new issue