diff --git a/web/src/user/LibraryPage/ak-library-impl.ts b/web/src/user/LibraryPage/ak-library-impl.ts index 4986cbd708..bde7509b5e 100644 --- a/web/src/user/LibraryPage/ak-library-impl.ts +++ b/web/src/user/LibraryPage/ak-library-impl.ts @@ -116,8 +116,13 @@ export class LibraryPage extends AKElement { @bound launchRequest(event: LibraryPageSearchSelected) { event.stopPropagation(); - if (this.selectedApp?.launchUrl) { + if (!this.selectedApp?.launchUrl) { + return; + } + if (!this.selectedApp.openInNewTab) { window.location.assign(this.selectedApp?.launchUrl); + } else { + window.open(this.selectedApp.launchUrl); } }