#58257 closed defect (bug) (duplicate)
Canonical URL uses comment URL when comments are set to break into pages
Reported by: | plari | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 6.2 |
Component: | Canonical | Keywords: | close |
Focuses: | Cc: |
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)
#1
@
19 months ago
- Component changed from Comments to Canonical
Hi @plari Thank you for the ticket. I checked it with 6.3-alpha-55505-src version and got the similar result (see above).
It looks like duplicate for #11856 and if so, the current ticket should be closed and linked in the first one.
Note: See
TracTickets for help on using
tickets.
Page source showing canonical URL