fix: messed up redirects for http urls
This commit is contained in:
7 files changed
+31
-27
No files matched your search
@@ -7,7 +7,7 @@ export function load({ params }) {
|
||||
redirect(
|
||||
302,
|
||||
resolveRoute('/comment/[instance]/[id]', {
|
||||
instance: instance.data.toLowerCase(),
|
||||
instance: encodeURIComponent(instance.data.toLowerCase()),
|
||||
id: params.instance,
|
||||
}),
|
||||
)
|
||||
|
||||
@@ -23,7 +23,7 @@ export async function load({ params, fetch }) {
|
||||
resolveRoute(
|
||||
`/post/[instance]/[id]?thread=${threadPath}#${comment.comment_view.comment.id}`,
|
||||
{
|
||||
instance: params.instance,
|
||||
instance: encodeURIComponent(params.instance),
|
||||
id: comment.comment_view.post.id.toString(),
|
||||
},
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user