[wp-trac] [WordPress Trac] #51348: Trailing slash redirect removes pipes from query strings

WordPress Trac noreply at wordpress.org
Wed Nov 18 11:04:58 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 simjost):

 Hi @TimothyBlynJacobs,

 yes, we tried encoding it and it is fine. Unfortunately the plain pipe is
 needed. I have informed the people making the requirements on this, that
 they should reconsider.

 However, to my knowledge the pipe is not a unallowed character in urls
 anymore and WordPress is handeling it very differently in different
 circumstances.
 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.

 The behaviour should be uniform across all scenarios.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51348#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list