Repository navigation
[SEO T1.5] Redirige en 301 les talks dont le slug a changé - #2467
Open
xavierleune wants to merge 1 commit into
Open
xavierleune wants to merge 1 commit into
xavierleune wants to merge 1 commit into
Conversation
Le slug d'un talk est dérivé de son titre : quand le titre est modifié
après publication, /talks/{id}-{ancien-slug} et sa variante /joindin
répondaient 404, ce qui cassait les anciens liens et les backlinks.
- ShowAction et JoindinAction redirigent en 301 vers leur propre route
(talks_show, talks_joindin) avec le slug courant quand le talk existe
et est publié mais que le slug diffère
- Le 404 est conservé pour un talk inexistant ou non publié
(isDisplayedOnHistory, et planning absent pour ShowAction)
- Behat : step "I do not follow redirects" (repris de feat/seo) et
scénarios 301 / 200 / 404
xavierleune
force-pushed
the
seo/t1.5-redirection-slug
branch
from
November 19, 2026 11:04
f2ebd11 to
9fa95cb
Compare
xavierleune
marked this pull request as ready for review
November 19, 2026 11:05
xavierleune
requested review from
Mopolo,
agallou and
stakovicz
as code owners
November 19, 2026 11:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Quand le titre d'un talk change, l'ancien slug répondait 404 et les backlinks étaient perdus. Le mauvais slug redirige maintenant en 301 vers le slug courant.
Changements
ShowAction: 301 verstalks_showsi le talk est publié mais le slug diffère.JoindinAction: 301 verstalks_joindinavec le slug courant, avant l'appel à l'API.Tests : scénarios 200 / 301 / 404 dans
Talks.feature, page et/joindin. Vus rouges sur code cassé puis verts.Points d'attention
I do not follow redirectsrecopié depuisfeat/seo: conflit trivial avecfeat/seo(T1.1), garder une seule copie./joindin, fichiers différents.