Wrong rel=prev href on an ajax paginated view

Created on 22 April 2024, 7 months ago
Updated 5 September 2024, 2 months ago

Problem/Motivation

When you have an ajax paginated view, the return button to the previous page has a href "/views/ajax", when it should be the absolute url of the page in question.

Steps to reproduce

Create a paginated view and enable Ajax. Go to page 1.

Proposed resolution

Adapt the getQueryWithoutPageZero method in SeoPagerService.php.
Currently, when there are no arguments, the method returns \Drupal::request()->getPathInfo(); which does not work in an Ajax-enabled context.

🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

🇫🇷France fwust Strasbourg

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024