Skip to content

Redirect legacy community page #2319

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

Merged
merged 2 commits into from
Feb 21, 2024
Merged

Conversation

dorian-adams
Copy link
Contributor

Permanently redirect legacy community page, /community-landing/, to /community/.

Resolves #2294

Permanently redirect /community-landing/ to /community/

Resolves python#2294
Copy link
Contributor

@eamanu eamanu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But IMO, this PR does not fix #2294 because python community merchandise is not found. https://www.python.org/community-landing/merchandise/

Use regular expression to redirect all legacy 'community-landing/' paths, including any children.
@dorian-adams
Copy link
Contributor Author

Thank you @eamanu , I made a commit to address that. I switched to regex to catch all of the old URLs.

@brunohdmacedo
Copy link

❤️

Obrigado ?eamanu , eu fiz um compromisso para resolver isso. Eu mudei para regex para pegar todos os URLs antigos.

@ambv ambv merged commit f88599b into python:main Feb 21, 2024
@ewdurbin
Copy link
Member

Just seeing this but doing the redirect in nginx is more efficient and where we retain most static/long-lived redirects: https://github.com/python/pythondotorg/blob/main/config/nginx.conf.erb

ewdurbin added a commit that referenced this pull request Feb 21, 2024
ewdurbin added a commit that referenced this pull request Feb 21, 2024
* Revert "Redirect legacy community page (#2319)"

This reverts commit f88599b.

* move community-landing redirect to nginx

* move remainging RedirectViews to nginx

* match intended recirect from community-landing pr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File not found when looking for a python t-shirt
5 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy