Skip to content
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

Closed
nlhkabu opened this issue Mar 6, 2018 · 4 comments
Closed

Add a "shortlink" for projects #3143

nlhkabu opened this issue Mar 6, 2018 · 4 comments
Labels
good first issue This issue is ideal for first-time contributors! usability

Comments

@nlhkabu
Copy link
Contributor

nlhkabu commented Mar 6, 2018

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 likepypi.org/p/myproject which would redirect to pypi.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.

@nlhkabu nlhkabu added good first issue This issue is ideal for first-time contributors! usability labels Mar 6, 2018
@brainwane brainwane added the needs discussion a product management/policy issue maintainers and users should discuss label Mar 6, 2018
@di di removed the good first issue This issue is ideal for first-time contributors! label Mar 6, 2018
@di
Copy link
Member

di commented Mar 6, 2018

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 help project (currently at https://pypi.org/project/help/)?

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.

@paternal
Copy link

paternal commented Mar 7, 2018

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).

@dstufft
Copy link
Member

dstufft commented Mar 7, 2018

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 /p/ to /project/ seems like it'd be fine, and let people type out something shorter.

@di di changed the title Change URL structure Add a "shortlink" for projects Mar 7, 2018
@di di added the good first issue This issue is ideal for first-time contributors! label Mar 7, 2018
@di
Copy link
Member

di commented Mar 7, 2018

Sounds good to me, this is probably a "good first issue" then. I've updated the title/description/labels accordingly.

@nlhkabu nlhkabu removed the needs discussion a product management/policy issue maintainers and users should discuss label Mar 7, 2018
dirn added a commit to dirn/warehouse that referenced this issue Mar 7, 2018
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>
@di di closed this as completed in #3165 Mar 7, 2018
di pushed a commit that referenced this issue Mar 7, 2018
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>
Mariatta pushed a commit to Mariatta/warehouse that referenced this issue Mar 9, 2018
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue This issue is ideal for first-time contributors! usability
Projects
None yet
Development

No branches or pull requests

5 participants