misc: encode uri components for post fetching
This commit is contained in:
6 files changed
+15
-9
No files matched your search
@@ -6,7 +6,11 @@ export function load({ params, url }) {
|
||||
if (Number(params.instance)) {
|
||||
const split = url.pathname.split('/')
|
||||
|
||||
split.splice(2, 0, `${profile.data.instance?.toLowerCase()}`)
|
||||
split.splice(
|
||||
2,
|
||||
0,
|
||||
`${encodeURIComponent(profile.data.instance)?.toLowerCase()}`,
|
||||
)
|
||||
|
||||
const newUrl = new URL(url)
|
||||
newUrl.pathname = split.join('/')
|
||||
|
||||
Reference in new issue
Block a user