After knotless rename of a repository with a site, the site moves to
https://<owner>.knotless.page/<new>/, but the old path
/<old>/... answers 404 no such site. The repository's own pages on
knotless.dev redirect an old name.
How to see it
knotless site knotless://<you>/<repo> dist
knotless rename knotless://<you>/<repo> <new>
Open https://<label>.knotless.page/<repo>/. It answers 404, not a
307 to /<new>/.
What you expected
A temporary redirect to the new path, keeping the rest of the path, as
docs/design/pages.md (Renames) plans. The site's lookup reads only the
index, so that a request for any name costs no PDS read. That means the
index needs to keep same-account dev.knotless.redirect records (its
moved table holds only transfers). Then Sites::map can follow one
name to its key and the current name, and a transfer could send the old
path to the new owner's host the same way.
Where
knotless-serve's --pages-domain (crates/knotless-serve/src/sites.rs),
on feature/pages.
What happened
After
knotless renameof a repository with a site, the site moves tohttps://<owner>.knotless.page/<new>/, but the old path/<old>/...answers404 no such site. The repository's own pages on knotless.dev redirect an old name.How to see it
knotless site knotless://<you>/<repo> distknotless rename knotless://<you>/<repo> <new>https://<label>.knotless.page/<repo>/. It answers 404, not a 307 to/<new>/.What you expected
A temporary redirect to the new path, keeping the rest of the path, as docs/design/pages.md (Renames) plans. The site's lookup reads only the index, so that a request for any name costs no PDS read. That means the index needs to keep same-account
dev.knotless.redirectrecords (itsmovedtable holds only transfers). ThenSites::mapcan follow one name to its key and the current name, and a transfer could send the old path to the new owner's host the same way.Where
knotless-serve's
--pages-domain(crates/knotless-serve/src/sites.rs), on feature/pages.