Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShishkevich D. <135337715+shishkevichd@users.noreply.github.com>2025-04-07 04:28:02 +0300
committerGitHub <noreply@github.com>2025-04-07 04:28:02 +0300
commit520f7a2d15faae41b2ae33d09fb4af8a499aebef (patch)
tree1612d851304cc3c642c1920b314f439ff2c3c1d1 /web/html/component/aSidebar.html
parent3ded4ee65868a34c2454090caf3a3d59f39f8abd (diff)
fix: current tab highlight in sidebar (#2874)
Diffstat (limited to 'web/html/component/aSidebar.html')
-rw-r--r--web/html/component/aSidebar.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/web/html/component/aSidebar.html b/web/html/component/aSidebar.html
index dfaebb17..b69c8f3f 100644
--- a/web/html/component/aSidebar.html
+++ b/web/html/component/aSidebar.html
@@ -45,27 +45,27 @@
return {
tabs: [
{
- key: 'panel/',
+ key: '{{ .base_path }}panel/',
icon: 'dashboard',
title: '{{ i18n "menu.dashboard"}}'
},
{
- key: 'panel/inbounds',
+ key: '{{ .base_path }}panel/inbounds',
icon: 'user',
title: '{{ i18n "menu.inbounds"}}'
},
{
- key: 'panel/settings',
+ key: '{{ .base_path }}panel/settings',
icon: 'setting',
title: '{{ i18n "menu.settings"}}'
},
{
- key: 'panel/xray',
+ key: '{{ .base_path }}panel/xray',
icon: 'tool',
title: '{{ i18n "menu.xray"}}'
},
{
- key: 'logout/',
+ key: '{{ .base_path }}logout/',
icon: 'logout',
title: '{{ i18n "menu.logout"}}'
},
@@ -80,8 +80,8 @@
methods: {
openLink(key) {
return key.startsWith('http') ?
- window.open(`{{ .base_path }}${key}`) :
- location.href = `{{ .base_path }}${key}`
+ window.open(key) :
+ location.href = key
},
closeDrawer() {
this.visible = false;