fix: incorrect partial url on backwards navigation (#2510)

This commit is contained in:
Marvin Hagemeister
2024-06-08 09:01:12 +02:00
committed by GitHub
parent d6cabce71d
commit 003f2bbb5f
2 changed files with 44 additions and 0 deletions
+1
View File
@@ -288,6 +288,7 @@ async function fetchPartials(
init: RequestInit = {},
) {
init.redirect = "follow";
partialUrl = new URL(partialUrl);
partialUrl.searchParams.set(PARTIAL_SEARCH_PARAM, "true");
const res = await fetch(partialUrl, init);