web/satellite: replace spaces with %20 in linksharing url

WHAT:
replace empty spaces with %20 in linksharing url

WHY:
bakeoff

Change-Id: I57e3cb6cde9986d32880942538fd1516790f8c8f
This commit is contained in:
Vitalii Shpital 2021-04-15 19:23:55 +03:00
parent 63c3dd2b2d
commit 1215500c83

View File

@ -79,6 +79,8 @@ export default class UploadFile extends Vue {
try {
const key: string = await this.accessKey(this.apiKey, inADay, path);
path = encodeURIComponent(path.trim());
return `${this.linksharingURL}/s/${key}/${path}?map=1`;
} catch (error) {
await this.$notify.error(error.message);
@ -100,6 +102,8 @@ export default class UploadFile extends Vue {
try {
const key: string = await this.accessKey(cleanAPIKey.secret, notAfter, path);
path = encodeURIComponent(path.trim());
return `${this.linksharingURL}/${key}/${path}`;
} catch (error) {
await this.$notify.error(error.message);