-
Notifications
You must be signed in to change notification settings - Fork 963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a "shortlink" for projects #3143
Comments
Going to remove the "good first issue" label from this. IMO while this would be nice, it's not likely to happen. We have a number of other routes that sit at the top level path here, and this would make packages conflict with them, e.g. would https://pypi.org/help/ go to our "Help" page (as it does now) or to the We would need to 'audit' the existing routes for conflicting projects and either rename our routes or "reserve" the project name for our own routes. This would also make adding new routes harder in the future, because we'd need to go through the same process, rather than just adding it as we do now. |
What about a short route? E.g. https://pypi.org/p/foobar which would replace, or be an alias to https://pypi.org/project/foobar . It would be a shorter URL to type directly, while not messing up "non project" routes (like https://pypi.org/help). |
I'd be fine with a shorter router as an alias. I don't think we gain much by making it the canonical location, but a blanket redirect of |
Sounds good to me, this is probably a "good first issue" then. I've updated the title/description/labels accordingly. |
To make it easier for people who want to type project URLs, this will redirect all requests for `/p/<project>/` to `/project/<project>/`. Closes pypi#3143 Signed-off-by: Andy Dirnberger <andy@dirnberger.me>
To make it easier for people who want to type project URLs, this will redirect all requests for `/p/<project>/` to `/project/<project>/`. Closes #3143 Signed-off-by: Andy Dirnberger <andy@dirnberger.me>
To make it easier for people who want to type project URLs, this will redirect all requests for `/p/<project>/` to `/project/<project>/`. Closes pypi#3143 Signed-off-by: Andy Dirnberger <andy@dirnberger.me>
From user testing:
When viewing projects on PyPI, some users type the URL directly if they know the project name.
We should create a shortlink like
pypi.org/p/myproject
which would redirect topypi.org/projects/myproject
cc @di for feedback / guidance.
Good First Issue: This issue is good for first time contributors. If you've already contributed to Warehouse, please work on another issue without this label instead. If there is not a corresponding pull request for this issue, it is up for grabs. For directions for getting set up, see our Getting Started Guide. If you are working on this issue and have questions, please feel free to ask them here,
#pypa-dev
on Freenode, or the pypa-dev mailing list.The text was updated successfully, but these errors were encountered: