mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-09 14:37:36 +01:00
Redirect /packages/author/ to /users/author/
This commit is contained in:
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):
|
||||
|
Loading…
Reference in New Issue
Block a user