Fix relative link handling in Element Desktop (#7708)
This commit is contained in:
parent
f0446a23d5
commit
760d269671
2 changed files with 7 additions and 3 deletions
|
@ -362,7 +362,11 @@ export function tryTransformEntityToPermalink(entity: string): string {
|
|||
* @returns {string} The transformed permalink or original URL if unable.
|
||||
*/
|
||||
export function tryTransformPermalinkToLocalHref(permalink: string): string {
|
||||
if (!permalink.startsWith("http:") && !permalink.startsWith("https:") && !permalink.startsWith("matrix:")) {
|
||||
if (!permalink.startsWith("http:") &&
|
||||
!permalink.startsWith("https:") &&
|
||||
!permalink.startsWith("matrix:") &&
|
||||
!permalink.startsWith("vector:") // Element Desktop
|
||||
) {
|
||||
return permalink;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue