Opened 4 years ago
Last modified 2 years ago
#57724 new defect (bug)
redirect_canonical() may not work if site_url contains port number
| Reported by: | obache | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Canonical | Version: | 6.1.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch looks fine. Thanks @obache