mirror of
https://github.com/hassio-addons/addon-grocy.git
synced 2025-05-04 19:21:24 +00:00
fixes relative URL
This commit is contained in:
parent
4f602db0b2
commit
d940665e92
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ index fceaaa0..bfc76e6 100644
|
|||
- Grocy.BaseUrl = '{{ $U('/') }}';
|
||||
- Grocy.CurrentUrlRelative = "/" + window.location.href.split('?')[0].replace(Grocy.BaseUrl, "");
|
||||
+ Grocy.BaseUrl = window.location.origin + '{{ $U('/') }}';
|
||||
+ Grocy.CurrentUrlRelative = "/" + window.location.pathname.replace(Grocy.BaseUrl, "");
|
||||
+ Grocy.CurrentUrlRelative = "/" + window.location.pathname.replace((new URL(Grocy.BaseUrl)).pathname, "");
|
||||
Grocy.ActiveNav = '@yield('activeNav', '')';
|
||||
Grocy.Culture = '{{ GROCY_LOCALE }}';
|
||||
Grocy.Currency = '{{ GROCY_CURRENCY }}';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue