mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(routers.pkgbase): fix next argument for merge redirection
This was redirecting us to the package which we merged, leading us into a 404. This fixes that issue by instead redirecting us into the target we merge into. Closes #231 Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
83dc26ccde
commit
71e73ca654
1 changed files with 0 additions and 3 deletions
|
@ -785,9 +785,6 @@ async def pkgbase_merge_get(request: Request, name: str,
|
||||||
next: str = Query(default=str())):
|
next: str = Query(default=str())):
|
||||||
pkgbase = get_pkg_or_base(name, PackageBase)
|
pkgbase = get_pkg_or_base(name, PackageBase)
|
||||||
|
|
||||||
if not next:
|
|
||||||
next = f"/pkgbase/{pkgbase.Name}"
|
|
||||||
|
|
||||||
context = templates.make_context(request, "Package Merging")
|
context = templates.make_context(request, "Package Merging")
|
||||||
context.update({
|
context.update({
|
||||||
"pkgbase": pkgbase,
|
"pkgbase": pkgbase,
|
||||||
|
|
Loading…
Add table
Reference in a new issue