mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
refactor(views): update canonical URL generation logic
Refactored the canonical URL generation logic in the app.blade.php file to use Laravel's url() helper function instead of accessing $_SERVER directly.
This commit is contained in:
@@ -23,11 +23,11 @@
|
|||||||
<title>@yield('title')</title>
|
<title>@yield('title')</title>
|
||||||
<meta name="description" content="@yield('description')">
|
<meta name="description" content="@yield('description')">
|
||||||
|
|
||||||
{{-- @if (strpos($_SERVER['REQUEST_URI'], 'page') !== false)
|
@if (strpos(url()->full(), 'page') !== false)
|
||||||
<link rel="canonical" href="{{ url()->full() }}">
|
<link rel="canonical" href="{{ url()->full() }}">
|
||||||
@else
|
@else
|
||||||
<link rel="canonical" href="{{ url()->current() }}">
|
<link rel="canonical" href="{{ url()->current() }}">
|
||||||
@endif --}}
|
@endif
|
||||||
|
|
||||||
@stack('meta_tags')
|
@stack('meta_tags')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user