craft-seomatic icon indicating copy to clipboard operation
craft-seomatic copied to clipboard

Pagination next/prev with trailing slash

Open WHITE-developer opened this issue 2 years ago • 0 comments

Describe the bug

The pagination next/prev meta are getting a trailing slash when using pageTrigger with query param (eg ?page) and addTrailingSlashesToUrls is enabled. This due to the UrlHelper.php:L152. The passed in url already has the query param DynamicMeta.php:L102, so we end up with something like https://site.com/news/?page=2%2F

Expected behaviour

Trailing slash shouldn't be added to the query param.

Versions

  • Plugin version: 4.0.37
  • Craft version: 4.5.13

WHITE-developer avatar Jan 16 '24 11:01 WHITE-developer