fix: not found page
This commit is contained in:
parent
d29100bb61
commit
86fdfa5560
1 changed files with 9 additions and 0 deletions
9
resources/views/vendor/uwil-common/components/head/hreflang.blade.php
vendored
Normal file
9
resources/views/vendor/uwil-common/components/head/hreflang.blade.php
vendored
Normal 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
|
||||
Loading…
Add table
Reference in a new issue