From 2c328d6906c3abff934d700c1a2526f4c531ce83 Mon Sep 17 00:00:00 2001 From: Chaim Date: Wed, 17 Jun 2026 04:55:12 +0000 Subject: [PATCH] =?UTF-8?q?fix(scripts):=20=D7=A7=D7=99=D7=A9=D7=95=D7=A8?= =?UTF-8?q?=20"=D7=9E=D7=A7=D7=95=D7=A8"=20=D7=A9=D7=91=D7=A8=20=D7=A2?= =?UTF-8?q?=D7=9C=20SCRIPTS.md=20=D7=91=D7=A0=D7=AA=D7=99=D7=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ה-gitea_url מצביע על קובץ scripts/SCRIPTS.md, אבל הקישור הפר-סקריפט הוסיף אחריו את שם-הסקריפט → …/scripts/SCRIPTS.md/ (404 ב-Gitea). מתקן: מסיר את שם-הקובץ האחרון מהבסיס לפני הוספת שם-הסקריפט, כך שהקישור מצביע על …/scripts/. Co-Authored-By: Claude Opus 4.8 (1M context) --- web-ui/src/app/scripts/page.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web-ui/src/app/scripts/page.tsx b/web-ui/src/app/scripts/page.tsx index 70508f0..9a4c359 100644 --- a/web-ui/src/app/scripts/page.tsx +++ b/web-ui/src/app/scripts/page.tsx @@ -216,8 +216,12 @@ function ScriptTable({ {rows.map((s) => { const disabled = s.status === "archive" || s.status === "deleted"; + // giteaBase is the SCRIPTS.md *file* URL (…/scripts/SCRIPTS.md); the + // per-script "מקור" link needs the scripts/ *directory*, so strip the + // trailing filename before appending the script name (else the link + // becomes …/scripts/SCRIPTS.md/ and 404s on Gitea). const href = giteaBase - ? `${giteaBase.replace(/\/$/, "")}/${s.name}` + ? `${giteaBase.replace(/\/[^/]+$/, "")}/${s.name}` : null; return (