Skip to content
Snippets Groups Projects
Unverified Commit ded399d3 authored by Bruno Windels's avatar Bruno Windels Committed by GitHub
Browse files

Merge pull request #248 from matrix-org/url-escape-fragment

Apply URL encoding to the fragmentPath
parents 7d22a578 c378eb4b
No related branches found
No related tags found
No related merge requests found
......@@ -72,11 +72,11 @@ export class Element {
if (isWebPlatform && trustedWebInstances.includes(link.webInstances[this.id])) {
instanceHost = link.webInstances[this.id];
}
return `https://${instanceHost}/#/${fragmentPath}`;
return `https://${instanceHost}/#/${encodeURIComponent(fragmentPath)}`;
} else if (platform === Platform.Linux || platform === Platform.Windows || platform === Platform.macOS) {
return `element://vector/webapp/#/${fragmentPath}`;
return `element://vector/webapp/#/${encodeURIComponent(fragmentPath)}`;
} else {
return `element://${fragmentPath}`;
return `element://${encodeURIComponent(fragmentPath)}`;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment