We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
JSON.stringify
1 parent abe3979 commit 808177eCopy full SHA for 808177e
packages/start/src/server/handler.ts
@@ -213,7 +213,7 @@ function handleStreamCompleteRedirect(context: PageEvent) {
213
return ({ write }: { write: (html: string) => void }) => {
214
context.complete = true;
215
const to = context.response && context.response.headers.get("Location");
216
- to && write(`<script>window.location="${to}"</script>`);
+ to && write(`<script>window.location=${JSON.stringify(to)}</script>`);
217
};
218
}
219
0 commit comments