From 6c601d504bbb001209ffbbc1030fcee9ab576587 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Mon, 22 Jun 2026 23:04:11 -0700 Subject: [PATCH] Fix infinite navigation loop on 404 This regression was introduced in the refactor to use the Navigation API (ae381d71371966ac5b71203e308c772145a89d39). --- index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.html b/index.html index d908acf..4b6099a 100644 --- a/index.html +++ b/index.html @@ -200,6 +200,9 @@ return; } const url = new URL(e.destination.url); + if (new URLPattern({ pathname: '/errors/*' }).test(url)) { // Defer to normal navigation and let web server serve the error + return; + } e.intercept({ handler() { showPage(url.pathname); -- 2.47.3