Skip to content

fix: pkgbase -> package redirection

Kevin Morris requested to merge kevr/aurweb:fix-pkgbase-redirection into master

We were redirecting in some error-cases, which this commit sorts out:

  • package count == 1 and package base name != package name
  • was redirecting to {name} and not the only associated Package

Now, when we have a package base name that mismatches its only package, we display the package base page. Otherwise, we redirect to the first package's page.

Closes #282 (closed)

Signed-off-by: Kevin Morris kevr@0cost.org

Edited by Kevin Morris

Merge request reports