#58257 closed defect (bug) (duplicate)
Canonical URL uses comment URL when comments are set to break into pages
| Reported by: | plari | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Canonical | Version: | 6.2 |
| Severity: | normal | Keywords: | close |
| Cc: | Focuses: |
Description
If a page or post contains at least one comment, and the setting Break comments into pages... ENABLED under Settings > Discussion, then the page/post's canonical URL is appended with comment-page-1/#comments.
Disabling the setting returns to the canonical URL to the expected URL.
Steps to Reproduce
- Publish a page or post with comments enabled.
- Open the content and leave 1 comment
- While here, view the page source and search for
canonical- you should see the expected URL - Open Settings > Discussion and enable Break comments into pages...
- Refresh the content in question, and view the page source again. Now the Canonical URL shows:
https://SITE_ADRESS/POST-SLUG/comment-page-1/#comments
Originally reported here: https://github.com/Automattic/wp-calypso/issues/76589
Attachments (4)
Change History (8)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Page source showing canonical URL