[wp-trac] [WordPress Trac] #33821: redirect_canonical does not consider port in $compare_original
WordPress Trac
noreply at wordpress.org
Tue Jun 17 07:55:43 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 okay, I think you meant this redirect loop in WP Admin:
{{{
% curl -I https://1c3f-79-117-215-65.ngrok-free.app/wp-admin/
HTTP/2 302
cache-control: no-cache, must-revalidate, max-age=0, no-store, private
content-type: text/html; charset=UTF-8
date: Tue, 17 Jun 2025 07:52:48 GMT
expires: Wed, 11 Jan 1984 05:00:00 GMT
location: https://f261-79-117-215-65.ngrok-free.app/wp-
login.php?redirect_to=https%3A%2F%2F1c3f-79-117-215-65.ngrok-free.app
%2Fwp-admin%2F&reauth=1
ngrok-agent-ips: 79.117.215.65
server: nginx/1.26.1
x-powered-by: PHP/8.2.27
x-redirect-by: WordPress
}}}
I can reproduce it now with and without my patch, but to confirm, I wasn't
trying to fix this particular issue.
This 302 redirect doesn't look like coming from `redirect_canonical()` but
`auth_redirect()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33821#comment:40>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list