misc: encode uri components for post fetching
This commit is contained in:
6 files changed
+15
-9
No files matched your search
@@ -4,5 +4,8 @@ import { get } from 'svelte/store'
|
||||
|
||||
export function load({ params }) {
|
||||
// If you somehow got to /comment/instance, it likely means you passed in an ID, not an instance.
|
||||
redirect(302, `/comment/${profile.data.instance}/${params.instance}`)
|
||||
redirect(
|
||||
302,
|
||||
`/comment/${encodeURIComponent(profile.data.instance)}/${params.instance}`,
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user