From 6d5398321f324c29aa731c2f5ffb272933d98cce Mon Sep 17 00:00:00 2001 From: Sianao Date: Sun, 15 Nov 2026 00:02:15 +0800 Subject: [PATCH 1/2] fix(tasks): honor site base path in task links - Prefix task links with the configured site base path. --- src/pages/manage/tasks/helper.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/manage/tasks/helper.tsx b/src/pages/manage/tasks/helper.tsx index f75ae3574..c6d353eb4 100644 --- a/src/pages/manage/tasks/helper.tsx +++ b/src/pages/manage/tasks/helper.tsx @@ -2,6 +2,7 @@ import { createSignal, JSX } from "solid-js" import { me } from "~/store" import { TaskNameAnalyzer } from "./Tasks" import { useT } from "~/hooks" +import { base_path } from "~/utils" export const getPath = ( device: string, @@ -17,7 +18,7 @@ export const getPath = ( style={underline() ? "text-decoration: underline" : ""} onMouseOver={() => setUnderline(true)} onMouseOut={() => setUnderline(false)} - href={fullPath.slice(prefix.length)} + href={base_path + fullPath.slice(prefix.length)} > {fullPath} From 78127a1e17459eb1a8b8258a5c6f25fd7ee55683 Mon Sep 17 00:00:00 2001 From: Sianao Date: Sun, 15 Nov 2026 00:02:43 +0800 Subject: [PATCH 2/2] fix(tasks): check user base path at directory boundaries - Match the user base path as a complete directory prefix. --- src/pages/manage/tasks/helper.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/manage/tasks/helper.tsx b/src/pages/manage/tasks/helper.tsx index c6d353eb4..afa61dc6d 100644 --- a/src/pages/manage/tasks/helper.tsx +++ b/src/pages/manage/tasks/helper.tsx @@ -11,7 +11,8 @@ export const getPath = ( ): JSX.Element => { const fullPath = (device === "/" ? "" : device) + path const prefix = me().base_path === "/" ? "" : me().base_path - const accessible = fullPath.startsWith(prefix) + const accessible = + prefix === "" || fullPath === prefix || fullPath.startsWith(prefix + "/") const [underline, setUnderline] = createSignal(false) return accessible && asLink ? (