Matrix matrix scheme permalink constructor not stripping query params (#11060)
This commit is contained in:
parent
5264aa6138
commit
a861a54fcd
2 changed files with 32 additions and 1 deletions
|
@ -72,7 +72,8 @@ export default class MatrixSchemePermalinkConstructor extends PermalinkConstruct
|
|||
throw new Error("Does not appear to be a permalink");
|
||||
}
|
||||
|
||||
const parts = fullUrl.substring("matrix:".length).split("/");
|
||||
const url = new URL(fullUrl);
|
||||
const parts = url.pathname.split("/");
|
||||
|
||||
const identifier = parts[0];
|
||||
const entityNoSigil = parts[1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue