mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-26 16:35:39 +00:00
Implement link sharing (#213)
* Implement link sharing * Share default * Compress and base64 encode data * Better error messages * Fix build * Only change version when it's different
This commit is contained in:
@@ -88,7 +88,7 @@ export function setSeachParams(modifications: Record<string, string | undefined>
|
||||
else searchParams.set(key, value)
|
||||
})
|
||||
const search = Array.from(searchParams).map(([key, value]) =>
|
||||
`${encodeURIComponent(key)}=${encodeURIComponent(value)}`)
|
||||
`${encodeURIComponent(key)}=${encodeURIComponent(value).replaceAll('%2F', '/')}`)
|
||||
route(`${newPath ? cleanUrl(newPath) : getPath(url)}${search.length === 0 ? '' : `?${search.join('&')}`}`, true)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user