Aug 13, 2022
0
Level 6
Pagination and canonical
I have a page that Google has reported as "Duplicate without user-selected canonical" as it is domain.com/pagename/ that gets redirected to domain.com/pagename
I have added a canonical tag with the following in my layout
<link rel="canonical" href="@yield('canonical')" />
and this in my page
@section('canonical'){{ URL::current() }}@endsection
The issue is I also have a page with pagination and this causes the canonical to always be the root page url without the page parameter. What is the best practice for handling this scenario?
Thanks
Please or to participate in this conversation.