From 58b4d1562d3e5b91a59fa79ab0c8a6a02a98411e Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 24 Oct 2025 23:11:05 -0500 Subject: [PATCH] Fix protocol handler to strip trailing slashes The URL app://index.html/ was failing because of the trailing slash. Now strips trailing slashes before resolving file paths. --- electron/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/electron/main.js b/electron/main.js index 84a6a775..b37b2aef 100644 --- a/electron/main.js +++ b/electron/main.js @@ -114,6 +114,9 @@ app.whenReady().then(async () => { // Remove 'app://' prefix and normalize path let filePath = request.url.replace('app://', ''); + // Remove trailing slashes + filePath = filePath.replace(/\/+$/, ''); + // Handle root path if (filePath === '' || filePath === '/') { filePath = 'index.html';