diff --git a/app/blueprints/packages/packages.py b/app/blueprints/packages/packages.py index b04d58f3..7987051c 100644 --- a/app/blueprints/packages/packages.py +++ b/app/blueprints/packages/packages.py @@ -122,6 +122,11 @@ def get_releases(package): return package.releases.filter_by(approved=True).limit(5) +@bp.route("/packages//") +def user_redirect(author): + return redirect(url_for("users.profile", username=author)) + + @bp.route("/packages///") @is_package_page def view(package):