mirror of
https://github.com/hassio-addons/addon-grocy.git
synced 2025-05-04 19:21:24 +00:00
13 lines
619 B
Diff
13 lines
619 B
Diff
diff --git a/views/layout/default.blade.php b/views/layout/default.blade.php
|
|
index fceaaa0..bfc76e6 100644
|
|
--- a/views/layout/default.blade.php
|
|
+++ b/views/layout/default.blade.php
|
|
@@ -87,7 +87,7 @@
|
|
Grocy.Components = { };
|
|
Grocy.Mode = '{{ GROCY_MODE }}';
|
|
Grocy.BaseUrl = '{{ $U('/') }}';
|
|
- Grocy.CurrentUrlRelative = "/" + window.location.href.split('?')[0].replace(Grocy.BaseUrl, "");
|
|
+ Grocy.CurrentUrlRelative = "/" + window.location.pathname.replace(Grocy.BaseUrl, "");
|
|
Grocy.ActiveNav = '@yield('activeNav', '')';
|
|
Grocy.Culture = '{{ GROCY_LOCALE }}';
|
|
Grocy.Currency = '{{ GROCY_CURRENCY }}';
|