-
Notifications
You must be signed in to change notification settings - Fork 0
fix(public): point brief-requested nav and back links at clean non-307 paths #97
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
Changes from all commits
ad5164e
90645c2
d07d750
a237f49
167b9fd
56884fa
fa2ee08
7b8bf18
307fa21
3f074ec
35d064c
4b0f3ec
71a2aa8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1457,17 +1457,20 @@ for (const [pageName, pageHtml, pageUrl] of structuredDataPages) { | |
| // point at the final destination URL: the dogfood run reported every .html | ||
| // navigation target on home ("index.html" -> "/", "audit.html" -> "/audit", | ||
| // "agents.html" -> "/agents", "pricing.html" -> "/pricing", "specimen.html" -> | ||
| // "/specimen") as a redirecting internal link. The five public pages must | ||
| // therefore point every page link at the clean URL the worker serves, never | ||
| // at a .html file that resolves to it. These are STATIC SOURCE GUARDS (regex | ||
| // over the served files): CI has no browser, so they assert the .html target | ||
| // shape cannot return, not that the redirects are absent on the network. | ||
| // "/specimen") as a redirecting internal link. The five public pages (and the | ||
| // /brief-requested post-signup page, which carries the same logo/nav/back | ||
| // shell) must therefore point every page link at the clean URL the worker | ||
| // serves, never at a .html file that resolves to it. These are STATIC SOURCE | ||
| // GUARDS (regex over the served files): CI has no browser, so they assert the | ||
| // .html target shape cannot return, not that the redirects are absent on the | ||
| // network. | ||
| const internalLinkPages = [ | ||
| ["homepage", siteHome], | ||
| ["audit page", siteAudit], | ||
| ["desk page", read("public/agents.html")], | ||
| ["pricing page", read("public/pricing.html")], | ||
| ["specimen page", read("public/specimen.html")] | ||
| ["specimen page", read("public/specimen.html")], | ||
| ["brief-requested page", read("public/brief-requested.html")] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When any guarded page contains Useful? React with 👍 / 👎. |
||
| ]; | ||
|
|
||
| const htmlPageTargets = { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a brief-requested link is written in the common root-relative form
href="/audit.html",targetremains/audit.html, which is not a key inhtmlPageTargets; the checker therefore passes even though the link still hits the redirecting.htmlendpoint. I confirmed this by substituting/audit.htmlon the newly guarded page and runningnode scripts/check-site.mjs, which exited successfully, so the detector added here does not reliably prevent the regression it is intended to cover.Useful? React with 👍 / 👎.