Opened 8 years ago
Closed 8 years ago
#4072 closed defect (bug) (fixed)
Plugin support URLs should 301 to enforce a trailing slash
| Reported by: | jonoaldersonwp | Owned by: | dd32 |
|---|---|---|---|
| Priority: | lowest | Milestone: | |
| Component: | Support Forums | Keywords: | seo |
| Cc: |
Description
Change History (8)
#5
@
8 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
@jonoaldersonwp This appears to already happen, are you seeing otherwise?