mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
fix(layout): fix canonical link generation based on request URI
Adjusts the canonical link generation in the layout file to use `url()->full()` when 'page' is in the request URI.
This commit is contained in:
@@ -23,7 +23,11 @@
|
||||
<title>@yield('title')</title>
|
||||
<meta name="description" content="@yield('description')">
|
||||
|
||||
@if (strpos($_SERVER['REQUEST_URI'], 'page') !== false)
|
||||
<link rel="canonical" href="{{ url()->full() }}">
|
||||
@else
|
||||
<link rel="canonical" href="{{ url()->current() }}">
|
||||
@endif
|
||||
|
||||
@stack('meta_tags')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user