Skip to content

Commit

Permalink
Don't encode URL
Browse files Browse the repository at this point in the history
Hydrogen already encodes it since element-hq/hydrogen-web#911
  • Loading branch information
psrpinto committed Dec 13, 2022
1 parent 9043ce9 commit edb9763
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions frontend/iframe/platform/URLRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,8 @@ export class URLRouter extends BaseURLRouter<SegmentType> {
}

createSSOCallbackURL(): string {
// TODO: Remove the call to encodeURIComponent() once https://github.com/vector-im/hydrogen-web/pull/911 has been merged,
// and a new release has been issued which contains that PR.
// Note that package.json hardcodes hydrogen's version, so it will need to be updated so that the new
// version is used.

// The URL of the iframe's parent.
return encodeURIComponent(parent.location.href);
return parent.location.href;
}

normalizeUrl(): void {
Expand Down

0 comments on commit edb9763

Please sign in to comment.