Make WordPress Core

Opened 18 years ago

Closed 17 years ago

#6734 closed defect (bug) (invalid)

Searchform ignores canonical redirection

Reported by: ericr23's profile ericr23 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)

#1 @DD32
18 years ago

  • Milestone set to 2.6

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)

#2 @DD32
17 years ago

  • Keywords reporter-feedback added
  • Milestone 2.9 deleted
  • Resolution set to invalid
  • Status changed from new to closed

Closing as invalid as the URL produced by WordPress should be correct according to the URL settings (Which the canonical redirection is based off)

Note: See TracTickets for help on using tickets.