craft-seomatic
craft-seomatic copied to clipboard
Pagination next/prev with trailing slash
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