fix: ssr redirect issue
This commit is contained in:
1 parent
a505bd5b64
commit
ae0657cf7c
9 files changed
+101
-63
No files matched your search
@@ -3,5 +3,5 @@ import { redirect } from '@sveltejs/kit'
|
||||
|
||||
export function load({ params }) {
|
||||
// If you somehow got to /comment/instance, it likely means you passed in an ID, not an instance.
|
||||
redirect(300, `/comment/${getInstance()}/${params.instance}`);
|
||||
redirect(302, `/comment/${getInstance()}/${params.instance}`);
|
||||
}
|
||||
@@ -9,7 +9,7 @@ export async function load({ params, fetch }) {
|
||||
})
|
||||
|
||||
redirect(
|
||||
300,
|
||||
302,
|
||||
`/post/${params.instance}/${comment.comment_view.post.id}?thread=${comment.comment_view.comment.path}#${comment.comment_view.comment.id}`
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user