fix: not found page

This commit is contained in:
Jérémy Munsch 2026-07-03 16:38:56 +02:00
parent d29100bb61
commit 86fdfa5560
Signed by: forge-joniko
GPG key ID: D7EFE2F5CB6CC0E4

View file

@ -0,0 +1,9 @@
@if (!is_null($currentRouteName) && $currentRouteName !== 'redirect.fallback' && count(config('laravellocalization.supportedLocales', [])) > 1)
<link href="{{ route($currentRouteName, request()->route()->parameters()) }}" hreflang="x-default" rel="alternate">
@foreach (array_keys(config('laravellocalization.supportedLocales', [])) as $lang)
@php
$url = LaravelLocalization::getLocalizedURL($lang, null, request()->route()->parameters());
@endphp
<link href="{{ $url }}" hreflang="{{ $lang }}" rel="alternate">
@endforeach
@endif