Skip to content

Commit 7fb7951

Browse files
sniokjoaquimrocha
authored andcommitted
app: Fix url decoding for external links handling
1 parent d9710ca commit 7fb7951

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/electron/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,8 @@ function startElecron() {
15001500
if a library is trying to open a url other than app url in electron take it
15011501
to the default browser
15021502
*/
1503-
mainWindow.webContents.on('will-navigate', (event, url) => {
1503+
mainWindow.webContents.on('will-navigate', (event, encodedUrl) => {
1504+
const url = decodeURI(encodedUrl);
15041505
if (url.startsWith(startUrl)) {
15051506
return;
15061507
}

0 commit comments

Comments
 (0)