Opened 6 years ago
Closed 6 years ago
#4072 closed defect (bug) (fixed)
Plugin support URLs should 301 to enforce a trailing slash
Reported by: | jonoaldersonwp | Owned by: | dd32 |
---|---|---|---|
Milestone: | Priority: | lowest | |
Component: | Support Forums | Keywords: | seo |
Cc: |
Description
Change History (8)
#3
@
6 years ago
- Resolution set to invalid
- Status changed from new to closed
Odd. Am I going mad?
Closing.
#4
@
6 years ago
- Resolution invalid deleted
- Status changed from closed to reopened
Aha, paginated states don't.
#5
@
6 years ago
Huh, weird. is_404()
is true for paginated requests..
Ahhh super fun. A request to /support/plugin/*
triggers this query in WP_Query.. and as there's only one page of posts on the site.. :)
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish' OR ... ) ORDER BY wp_posts.post_date DESC LIMIT 0, 10
Looks like the Support forum custom views need some logic added to set is_404 = false
and prevent the default query from running (since it's built elsewhere somehow)
Note: See
TracTickets for help on using
tickets.
@jonoaldersonwp This appears to already happen, are you seeing otherwise?