Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 574d390

Browse files
authored
Merge pull request #5380 from matrix-org/t3chguy/fix/15597
Fix regression with OpenID permissions on widgets
2 parents 06bd2d9 + bf124c4 commit 574d390

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stores/widgets/StopGapWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export class StopGapWidget extends EventEmitter {
250250

251251
// Actually ask for permission to send the user's data
252252
Modal.createTrackedDialog("OpenID widget permissions", '', WidgetOpenIDPermissionsDialog, {
253-
widgetUrl: rawUrl.substr(0, rawUrl.lastIndexOf("?")),
253+
widgetUrl: rawUrl.includes("?") ? rawUrl.substr(0, rawUrl.indexOf("?")) : rawUrl,
254254
widgetId: this.widgetId,
255255
isUserWidget: this.appTileProps.userWidget,
256256

0 commit comments

Comments
 (0)