Skip to content

Commit fa247f6

Browse files
author
Benjamin Pasero
committed
Help > View License not redirecting properly (fixes microsoft#4579)
1 parent 28dade4 commit fa247f6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/vs/workbench/electron-main/menus.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,8 @@ export class VSCodeMenu {
595595
env.product.licenseUrl ? new MenuItem({
596596
label: mnemonicLabel(nls.localize({ key: 'miLicense', comment: ['&& denotes a mnemonic'] }, "&&View License")), click: () => {
597597
if (platform.language) {
598-
openUrl(`${env.product.licenseUrl}?lang=${platform.language}`, 'openLicenseUrl');
598+
let queryArgChar = env.product.licenseUrl.indexOf('?') > 0 ? '&' : '?';
599+
openUrl(`${env.product.licenseUrl}${queryArgChar}lang=${platform.language}`, 'openLicenseUrl');
599600
} else {
600601
openUrl(env.product.licenseUrl, 'openLicenseUrl');
601602
}

0 commit comments

Comments
 (0)