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

Commit bf124c4

Browse files
committed
Fix regression with OpenID permissions on widgets
1 parent 6d2dc63 commit bf124c4

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)