Make every URL the console page uses page-relative, guarded by a source test

AI Assisted
This commit is contained in:
Seth committed 2026-12-05 00:10:44 -08:00
1 parent 4ced32be5c
commit 1d007737b1
47 files changed
+401 -202

No files matched your search

+2 -2
View File
@@ -144,7 +144,7 @@ async function sendGit(op, fields = {}, wording = {}) {
return;
}
try {
const res = await fetch("/submit", {
const res = await fetch("submit", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
@@ -281,7 +281,7 @@ function gitTabKeys(e) {
// the action that follows has the agent re-read, which rebuilds the link.
async function pickPrHost(host, kind) {
if (gitLocked()) return;
const res = await postJson("/pr-host", { host, kind });
const res = await postJson("pr-host", { host, kind });
if (res.status !== 200) {
hooks.banner("That could not be saved. Try again in a moment.", "warn");
return;