AndyMillne's avatar

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

0 likes
0 replies

Please or to participate in this conversation.