Opened 18 years ago
Closed 17 years ago
#6734 closed defect (bug) (invalid)
Searchform ignores canonical redirection
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 2.5 |
| Component: | General | Keywords: | reporter-feedback |
| Focuses: | Cc: |
Description
The page returned by the Searchform (<form method="get" id="searchform" action="<?php bloginfo('url'); ?>">) drops www. from the site URL, i.e., it is not redirected to the canonical URL. This occurred in version 2.3.3 also.
It can be seen in action at: http://www.wind-watch.org/alerts/. Or in 2.3.3 at http://www.wind-watch.org/news/.
Change History (2)
Note: See
TracTickets for help on using
tickets.
The canonical redirect ignores search requests.
However, The URL output by
bloginfo('url')should be correct.So, If you were to goto site.com/?s=test, it would *not* redirect to www.site.com/?s=test
However, WordPress should not generate a URL without the www. (and as far as i can tell, Doesnt)