From b975f4bf810ac44be7e4c0e6139fce4424ae8fa5 Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Sun, 6 Dec 2020 13:29:54 +0300 Subject: [PATCH 1/2] Prevent native navigation --- src/elements/emby-button/emby-button.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/elements/emby-button/emby-button.js b/src/elements/emby-button/emby-button.js index e51fb4f130..a3568be018 100644 --- a/src/elements/emby-button/emby-button.js +++ b/src/elements/emby-button/emby-button.js @@ -18,6 +18,7 @@ function onAnchorClick(e) { shell.openUrl(href); } } else { + e.preventDefault(); appRouter.show(href); } } else { From 895b527fd5140bf04fe2f25ad38a5203491694af Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Sun, 6 Dec 2020 22:33:00 +0300 Subject: [PATCH 2/2] Fix plugin configuration page --- src/scripts/clientUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/clientUtils.js b/src/scripts/clientUtils.js index a72584729a..291202b2e0 100644 --- a/src/scripts/clientUtils.js +++ b/src/scripts/clientUtils.js @@ -95,7 +95,7 @@ export function logout() { } export function getPluginUrl(name) { - return '#!/configurationpage?name=' + encodeURIComponent(name); + return 'configurationpage?name=' + encodeURIComponent(name); } export function navigate(url, preserveQueryString) {