Fixed product picker workflows URLs were wrong when running grocy in a subdirectory (fixes #219)

This commit is contained in:
Bernd Bestel
2019-04-27 15:17:55 +02:00
parent 6442665f6c
commit b6b8c76d3a
2 changed files with 4 additions and 3 deletions

View File

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