migrate to sveltekit 2
This commit is contained in:
1 parent
ff52be7f34
commit
a7c1e2a21f
11 files changed
+21
-20
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.
|
||||
throw redirect(300, `/comment/${getInstance()}/${params.instance}`)
|
||||
redirect(300, `/comment/${getInstance()}/${params.instance}`);
|
||||
}
|
||||
@@ -8,8 +8,8 @@ export async function load({ params, fetch }) {
|
||||
id: Number(params.id),
|
||||
})
|
||||
|
||||
throw redirect(
|
||||
300,
|
||||
`/post/${params.instance}/${comment.comment_view.post.id}?thread=${comment.comment_view.comment.path}#${comment.comment_view.comment.id}`
|
||||
)
|
||||
redirect(
|
||||
300,
|
||||
`/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