Skip to content
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

Update the canonical URL if present #3

Closed
bglw opened this issue Sep 3, 2021 · 2 comments
Closed

Update the canonical URL if present #3

bglw opened this issue Sep 3, 2021 · 2 comments
Milestone

Comments

@bglw
Copy link
Contributor

bglw commented Sep 3, 2021

If a page contains a canonical URL, it should be updated to point the paginated page to itself.

If index.html contains:

<link rel="canonical" href="https://example.com/">

Then page/2/index.html should contain:

<link rel="canonical" href="https://example.com/page/2/">
@bglw bglw added this to the 1.0 release milestone Sep 3, 2021
@bglw
Copy link
Contributor Author

bglw commented Sep 9, 2021

Skipped test added in the above commit

@bglw
Copy link
Contributor Author

bglw commented Sep 12, 2021

Fixed in #17

@bglw bglw closed this as completed Sep 12, 2021
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

No branches or pull requests

1 participant