[wp-trac] [WordPress Trac] #33821: redirect_canonical does not consider port in $compare_original
WordPress Trac
noreply at wordpress.org
Tue Jun 17 07:45:40 UTC 2025
#33821: redirect_canonical does not consider port in $compare_original
-------------------------------------------------+-------------------------
Reporter: willshouse | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Future
| Release
Component: Canonical | Version: 2.3
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests changes- | Focuses:
requested |
-------------------------------------------------+-------------------------
Comment (by wojtekn):
@SirLouen, I think we may be testing and fixing different bugs.
I will review the case with the redirect loop you shared in more detail.
However, I don't get this part:
> Exactly as I was expecting
>
{{{
curl -I http://localhost:8889
HTTP/1.1 301 Moved Permanently
Server: nginx/1.27.5
Date: Mon, 16 Jun 2025 22:29:41 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/8.2.28
X-Redirect-By: WordPress
Location: http://localhost/
}}}
> The redirection is there, but it works perfectly without the patch. It
seems that the problem is exclusively in the scheme not in the host. I
have not really inspected what its going under the hood.
You say this redirection works perfectly, but this redirection is a bug
I'm trying to address. 🤔
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33821#comment:39>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list