HOTFIX: nie działały URL-e, które mają '#'

This commit is contained in:
Kuba Orlik 2022-09-02 22:07:04 +02:00
parent 3a32456534
commit aae1a7e970

View File

@ -38,7 +38,7 @@ interface screenshotTask {
}
function createTaskEndpoint(visited_url: string, domains: string[]) {
return `${SS_URL}/api/requests?url=${visited_url}${domains.reduce(
return `${SS_URL}/api/requests?url=${encodeURIComponent(visited_url)}${domains.reduce(
(prev: string, curr: string) => prev + '&domains[]=' + curr,
''
)}`;