Opened 12 years ago
Last modified 5 years ago
#22879 new defect (bug)
Canonical Link Missing on Front Page
Reported by: | miqrogroove | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.4.2 |
Component: | Canonical | Keywords: | needs-patch |
Focuses: | Cc: |
Description
Canonical links are provided for posts, so if someone links to /2012/12/my-post/?whatever then Google will know it is a duplicate of /2012/12/my-post/
But if someone links to /?whatever there is no canonical address.
Attachments (1)
Change History (8)
#2
in reply to:
↑ 1
@
12 years ago
Replying to miqrogroove:
This is also a problem with the default search path, /?s= where WordPress uses the wrong template and displays the front page instead of the search results page.
#5
follow-up:
↓ 6
@
9 years ago
I have tested this on 4.4-alpha-33636-src with post name permalinks and even if you use
/post-1/?variable=anything
the canonical link still points to the parent URL of
/post-1/
#6
in reply to:
↑ 5
@
9 years ago
@NickDuncan: Thanks for testing, but it looks like the ticket is about missing canonical link on front page, not on a post.
On the other hand, the current implementation was specifically introduced for singular pages, see [11777].
This is also a problem with the default search path, /?s= where WordPress uses the wrong template and displays the front page instead of the search results page.