Skip to content

Fix app2app bug when open in new tab#685

Draft
1000TurquoisePogs wants to merge 1 commit intov3.x/stagingfrom
bugfix/v3/open-in-new-tab-app2app
Draft

Fix app2app bug when open in new tab#685
1000TurquoisePogs wants to merge 1 commit intov3.x/stagingfrom
bugfix/v3/open-in-new-tab-app2app

Conversation

@1000TurquoisePogs
Copy link
Copy Markdown
Member

This is just a PR to make a test build. Do not merge yet.

A user had an issue where they couldnt use the 'open in new tab' feature of the desktop when their URL already contained some query parameters about app2app. The app2app feature was failing in that new tab.

It appears they had an invalid query parameter set where ? was seen multiple times.
The line changed here may be the cause, I am not sure yet.

Signed-off-by: 1000TurquoisePogs <sgrady@rocketsoftware.com>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Feb 5, 2026

Comment on lines +86 to +90
if (location.href.indexOf('?') != -1) {
window.open(`${location.href}&pluginId=${item.plugin.basePlugin.getIdentifier()}&showLogin=true`);
} else {
window.open(`${location.href}?pluginId=${item.plugin.basePlugin.getIdentifier()}&showLogin=true`);
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the readability purposes I would suggest to use:

let concatChar = '?';
if (location.href.indexOf('?') != -1) {
  concatChar = '&';
}
window.open(`${location.href}${concatChar}pluginId=${item.plugin.basePlugin.getIdentifier()}&showLogin=true`);

If you read original code, you have to focus to spot a difference between line 87/89.

@github-project-automation github-project-automation Bot moved this from Ready for Review to Merge Ready in WebUI planning board Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Merge Ready

Development

Successfully merging this pull request may close these issues.

2 participants