diff --git a/src/main/services/additional-content/local-playlists-manager.service.ts b/src/main/services/additional-content/local-playlists-manager.service.ts index 5be06e9b..d77bb85c 100644 --- a/src/main/services/additional-content/local-playlists-manager.service.ts +++ b/src/main/services/additional-content/local-playlists-manager.service.ts @@ -69,8 +69,8 @@ export class LocalPlaylistsManagerService { this.deepLink.addLinkOpenedListener(this.DEEP_LINKS.BeatSaver, link => { log.info("DEEP-LINK RECEIVED FROM", this.DEEP_LINKS.BeatSaver, link); const url = new URL(link); - const bplistUrl = url.host === "playlist" ? url.pathname.replace("/", "") : ""; - this.windows.openWindow(`oneclick-download-playlist.html?playlistUrl=${bplistUrl}`); + const bplistUrl = url.host === "playlist" ? url.pathname.replace("/", "") + url.search : ""; + this.windows.openWindow(`oneclick-download-playlist.html?playlistUrl=${encodeURIComponent(bplistUrl)}`); }); this.fileAssociation.registerFileAssociation(".bplist", filePath => {