Pkgdb: Avoid redirects to URL with trailing slash

/pkgdb/package/foo redirects to /pkgdb/package/foo/, therefore use the
final URL with trailing slash in links.