Fallback url generation to the secured scheme in blade views

This commit is contained in:
Bubka 2025-03-10 17:58:11 +01:00
parent f744556bcc
commit c477d879e8
3 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ config('app.name', 'Laravel') }}</title>
<!-- Styles -->
<link rel="stylesheet" href="{{ url('healthcheck.css', [], $isSecure) }}"></link>
<link rel="stylesheet" href="{{ url('healthcheck.css', [], $isSecure ?? true) }}"></link>
</head>
<body class="antialiased">
<div class="relative sm:flex sm:justify-center sm:items-center min-h-screen bg-gray-100 selection:bg-red-500 selection:text-white">

View File

@ -15,7 +15,7 @@
<link rel="icon" type="image/png" href="{{ asset('favicon.png') }}" />
<link rel="apple-touch-icon" href="{{ asset('favicon_lg.png') }}" />
<link rel="apple-touch-icon-precomposed" href="{{ asset('favicon_lg.png') }}" />
<link rel="manifest" href="{{ url('manifest.json', [], $isSecure) }}">
<link rel="manifest" href="{{ url('manifest.json', [], $isSecure ?? true) }}">
</head>
<body>

View File

@ -40,12 +40,15 @@ class ViewTest extends FeatureTestCase
$response->assertViewHas('appSettings');
$response->assertViewHas('appConfig');
$response->assertViewHas('urls');
$response->assertViewHas('defaultPreferences');
$response->assertViewHas('subdirectory');
$response->assertViewHas('isDemoApp');
$response->assertViewHas('isTestingApp');
$response->assertViewHas('lang');
$response->assertViewHas('locales');
$response->assertViewHas('cspNonce');
$response->assertViewHas('isSecure');
}
#[Test]