Closed general

A rename leaves earlier redirects pointing at the old slug (two-hop chains)

Ray · ·closed by Colby Knox

Renaming a page sets a 301 from its old slug to the new one, but redirects that already point AT the old slug are not updated, so a second rename builds a chain.

Example (2026-11-12):

  • adom/24aa64t-i was renamed to adom/24aa64t-i-st, then adom/24aa64t-i-st was renamed to adom/24aa64t-i-sn.
  • https://wiki.adom.inc/adom/24aa64t-i now answers 301 to /adom/24aa64t-i-st, which answers 301 to /adom/24aa64t-i-sn: two hops (curl -sL reports num_redirects 2).
  • The page API already resolves it: /api/pages/adom/24aa64t-i returns the 24aa64t-i-sn page.
  • There is no CLI verb or API endpoint to repoint an existing redirect (repo rename only sets the renamed page's own).

Ask: when a page is renamed, repoint every redirect whose target is the old slug to the new slug, so every old address is one hop. 13 more pages renamed twice today have the same two-hop chain; they flatten on their own once this ships.

1 Reply

Colby Knox marked this in progress ·
Colby Knox ·

Live: a rename now updates every earlier redirect that pointed at the old name, so every old address is one hop. adom/24aa64t-i and the other twice-renamed pages already answer in one hop, with nothing to rerun. Closing.

Colby Knox closed this ·

Log in to reply.