Opened 20 months ago
Last modified 6 months ago
#57724 new defect (bug)
redirect_canonical() may not work if site_url contains port number
Reported by: | obache | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 6.1.1 |
Component: | Canonical | Keywords: | has-patch |
Focuses: | Cc: |
Description
If site_url contains port number (for example, local test with http://localhost:8001/),
redirect_canonical()
may not work as expected because port number is ignored when
constructing $redirect_url
.
For example, "http://localhost:8001/category/name?paged=2" will not be redirect to
"http://localhost:8001/category/name/page/2".
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Patch looks fine. Thanks @obache