diff --git a/src/main/main.ts b/src/main/main.ts index 50daf3f7..d478694c 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -546,7 +546,7 @@ async function attachProtocolListeners() { const cleanUrl = url.replace(/^nethlink:\/?\/?/, '') const [actionPart, queryString] = cleanUrl.split('?') - const action = actionPart.toLowerCase().trim() + const action = actionPart.toLowerCase().trim().replace(/\/$/, '') const params = new URLSearchParams(queryString || '') const to = params.get('to')