diff --git a/src/runtime/entrypoints/main.ts b/src/runtime/entrypoints/main.ts
index c18b2950..8c5d7724 100644
--- a/src/runtime/entrypoints/main.ts
+++ b/src/runtime/entrypoints/main.ts
@@ -550,7 +550,8 @@ function _walkInner(
const partialErrorMessage = `Unable to process partial response.`;
-async function fetchPartials(url: URL, init?: RequestInit) {
+async function fetchPartials(url: URL, init: RequestInit = {}) {
+ init.redirect = "follow";
url.searchParams.set(PARTIAL_SEARCH_PARAM, "true");
const res = await fetch(url, init);
await applyPartials(res);
diff --git a/tests/fixture_partials/fresh.gen.ts b/tests/fixture_partials/fresh.gen.ts
index 82abfd95..6a7c7a51 100644
--- a/tests/fixture_partials/fresh.gen.ts
+++ b/tests/fixture_partials/fresh.gen.ts
@@ -106,6 +106,10 @@ import * as $no_partial_response_index from "./routes/no_partial_response/index.
import * as $no_partial_response_injected from "./routes/no_partial_response/injected.tsx";
import * as $no_partial_response_update from "./routes/no_partial_response/update.tsx";
import * as $partial_slot_inside_island from "./routes/partial_slot_inside_island.tsx";
+import * as $redirected_handler from "./routes/redirected/handler.tsx";
+import * as $redirected_index from "./routes/redirected/index.tsx";
+import * as $redirected_injected from "./routes/redirected/injected.tsx";
+import * as $redirected_redirect from "./routes/redirected/redirect.tsx";
import * as $relative_link_index from "./routes/relative_link/index.tsx";
import * as $scroll_restoration_index from "./routes/scroll_restoration/index.tsx";
import * as $scroll_restoration_injected from "./routes/scroll_restoration/injected.tsx";
@@ -244,6 +248,10 @@ const manifest = {
"./routes/no_partial_response/injected.tsx": $no_partial_response_injected,
"./routes/no_partial_response/update.tsx": $no_partial_response_update,
"./routes/partial_slot_inside_island.tsx": $partial_slot_inside_island,
+ "./routes/redirected/handler.tsx": $redirected_handler,
+ "./routes/redirected/index.tsx": $redirected_index,
+ "./routes/redirected/injected.tsx": $redirected_injected,
+ "./routes/redirected/redirect.tsx": $redirected_redirect,
"./routes/relative_link/index.tsx": $relative_link_index,
"./routes/scroll_restoration/index.tsx": $scroll_restoration_index,
"./routes/scroll_restoration/injected.tsx": $scroll_restoration_injected,
diff --git a/tests/fixture_partials/routes/redirected/handler.tsx b/tests/fixture_partials/routes/redirected/handler.tsx
new file mode 100644
index 00000000..d4eeb604
--- /dev/null
+++ b/tests/fixture_partials/routes/redirected/handler.tsx
@@ -0,0 +1,15 @@
+import { RouteConfig } from "$fresh/server.ts";
+import { Partial } from "$fresh/runtime.ts";
+
+export const config: RouteConfig = {
+ skipAppWrapper: true,
+ skipInheritedLayouts: true,
+};
+
+export default function Home() {
+ return (
+ Updated content
Default content
+