Skip to content

Fix canonical URL generation for first page in pagination #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 17, 2025

Conversation

atiksoftware
Copy link
Contributor

The previous update to setPaginationLinks aimed to remove ?page=1 from the canonical URL on the first page but contained an error that caused the code to fail despite passing tests. This commit addresses the issue by fixing the logic to ensure the canonical link is corrected properly. Added thorough validation to ensure the functionality behaves as expected.

The previous update to `setPaginationLinks` aimed to remove `?page=1` from the canonical URL on the first page but contained an error that caused the code to fail despite passing tests. This commit addresses the issue by fixing the logic to ensure the canonical link is corrected properly. Added thorough validation to ensure the functionality behaves as expected.
@butschster butschster merged commit 0246a67 into butschster:3.x Feb 17, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants