mirror of
https://github.com/grocy/grocy.git
synced 2026-04-04 20:06:16 +02:00
Fixed product picker workflow URLs were wrong when running grocy in a subdirectory and with disabled URL rewriting (again fixes #219)
This commit is contained in:
parent
ae156ed0e6
commit
3cf8ebeb89
|
|
@ -48,7 +48,7 @@
|
||||||
Grocy.Components = { };
|
Grocy.Components = { };
|
||||||
Grocy.Mode = '{{ GROCY_MODE }}';
|
Grocy.Mode = '{{ GROCY_MODE }}';
|
||||||
Grocy.BaseUrl = '{{ $U('/') }}';
|
Grocy.BaseUrl = '{{ $U('/') }}';
|
||||||
Grocy.CurrentUrlRelative = window.location.pathname.replace(Grocy.BaseUrl, "");
|
Grocy.CurrentUrlRelative = "/" + window.location.toString().replace(Grocy.BaseUrl, "");
|
||||||
Grocy.ActiveNav = '@yield('activeNav', '')';
|
Grocy.ActiveNav = '@yield('activeNav', '')';
|
||||||
Grocy.Culture = '{{ GROCY_CULTURE }}';
|
Grocy.Culture = '{{ GROCY_CULTURE }}';
|
||||||
Grocy.Currency = '{{ GROCY_CURRENCY }}';
|
Grocy.Currency = '{{ GROCY_CURRENCY }}';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user