[wp-trac] [WordPress Trac] #51001: Numbers at the end of the URL are removed (was: WP 5.5 Permalinks)

WordPress Trac noreply at wordpress.org
Fri Aug 14 16:02:41 UTC 2020


#51001: Numbers at the end of the URL are removed
--------------------------+------------------------------
 Reporter:  dmwebhosting  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Permalinks    |     Version:  5.5
 Severity:  normal        |  Resolution:
 Keywords:  close         |     Focuses:
--------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:   => close


Comment:

 Hi there, welcome to WordPress Trac! Thanks for the report.

 Either [47727] / #40773 or [47760] / #45337 would be the possible culprit
 here. I'm sorry to hear this is causing issues since the latest update.

 That said, the `/example/123/` URL structure is reserved in WordPress for
 pagination, it's used to display parts of a post separated with the `<!--
 nextpage-->` tag, and is not meant to be used for any other purpose.

 So I would recommend changing the numeric part of the `/show-
 listings/654493` request to something else, perhaps `/show-
 listings/?654493` if that works, to avoid conflicts.

 As another possible solution, you can disable the `redirect_canonical()`
 function for these requests, that is attached to the `template_redirect`
 action by default.

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


More information about the wp-trac mailing list