Matrix matrix scheme permalink constructor not stripping query params (#11060)

This commit is contained in:
Michael Telatynski 2023-06-09 08:20:05 +01:00 committed by GitHub
parent 5264aa6138
commit a861a54fcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 1 deletions

View file

@ -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];