~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/knotless

git that lives in your Atmosphere account

knotless.dev
1 collaborator

knotless 0.17.0 Latest 2 packages, 1 image

1
10

A renamed repository's site answers 404 at its old path

Open
Open chadtmiller.com opened this issue 0 comments
kind/bugarea/serve

What happened

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

  1. knotless site knotless://<you>/<repo> dist
  2. knotless rename knotless://<you>/<repo> <new>
  3. 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.