Fixed dynamic manifest didn't work with enabled authentication

This commit is contained in:
Bernd Bestel 2023-08-09 21:00:35 +02:00
parent 2d2039f988
commit 787d5f11e0
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -15,8 +15,12 @@
type="image/png"
sizes="32x32"
href="{{ $U('/img/icon-32.png?v=', true) }}{{ $version }}">
@if (GROCY_AUTHENTICATED)
<link rel="manifest"
crossorigin="use-credentials"
href="{{ $U('/manifest') . '?data=' . base64_encode($__env->yieldContent('title') . '#' . $U($_SERVER['REQUEST_URI'])) }}">
@endif
<title>@yield('title') | Grocy</title>