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:
Bernd Bestel 2019-05-02 21:33:59 +02:00
parent ae156ed0e6
commit 3cf8ebeb89
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -48,7 +48,7 @@
Grocy.Components = { };
Grocy.Mode = '{{ GROCY_MODE }}';
Grocy.BaseUrl = '{{ $U('/') }}';
Grocy.CurrentUrlRelative = window.location.pathname.replace(Grocy.BaseUrl, "");
Grocy.CurrentUrlRelative = "/" + window.location.toString().replace(Grocy.BaseUrl, "");
Grocy.ActiveNav = '@yield('activeNav', '')';
Grocy.Culture = '{{ GROCY_CULTURE }}';
Grocy.Currency = '{{ GROCY_CURRENCY }}';