[wp-trac] [WordPress Trac] #51348: Trailing slash redirect removes pipes from query strings
WordPress Trac
noreply at wordpress.org
Wed Nov 18 17:41:07 UTC 2020
#51348: Trailing slash redirect removes pipes from query strings
-------------------------------------+------------------------------
Reporter: simjost | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Canonical | Version: 5.5.1
Severity: normal | Resolution:
Keywords: reporter-feedback close | Focuses:
-------------------------------------+------------------------------
Comment (by TimothyBlynJacobs):
Replying to [comment:3 simjost]:
> However, to my knowledge the pipe is not a unallowed character in urls
anymore and WordPress is handeling it very differently in different
circumstances.
What are you basing that off of?
> On the root page with or without the trailing slash, WordPress is
encoding it by default.
> On subpages without a trailing slash, the pipe gehts removed (and our
WordPress redirects to the url with a trailing slash).
> On subpages with a trailing slash, the pipe stays.
That's because a canonical redirect isn't being triggered for those URLs.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51348#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list