Redirect /packages/author/ to /users/author/

This commit is contained in:
rubenwardy 2023-07-15 19:08:36 +01:00
parent 9e446e7524
commit 4a2d5c9066

@ -122,6 +122,11 @@ def get_releases(package):
return package.releases.filter_by(approved=True).limit(5)
@bp.route("/packages/<author>/")
def user_redirect(author):
return redirect(url_for("users.profile", username=author))
@bp.route("/packages/<author>/<name>/")
@is_package_page
def view(package):