From ec88543a145fdf913d12391b59713e5537d1f364 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Sat, 27 Jul 2024 10:55:45 +0200 Subject: [PATCH] Fix meta picker breaking with broken links --- web/components/page_navigator.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/components/page_navigator.tsx b/web/components/page_navigator.tsx index 0dec06cf..b46f3a82 100644 --- a/web/components/page_navigator.tsx +++ b/web/components/page_navigator.tsx @@ -69,6 +69,10 @@ export function PageNavigator({ }); } else if (mode === "meta") { // Special behavior for #template and #meta pages + if (pageMeta._isBrokenLink) { + // Skip over broken links + continue; + } options.push({ ...pageMeta, // Use the displayName or last bit of the path as the name