[wp-trac] [WordPress Trac] #62800: Related Posts creates long URLs which cause 414 Request-URI too long errors
WordPress Trac
noreply at wordpress.org
Fri Jan 10 20:05:48 UTC 2025
#62800: Related Posts creates long URLs which cause 414 Request-URI too long errors
-------------------------------+-----------------------------
Reporter: trigiolfreeie | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------------+-----------------------------
I'm honestly not sure where this code is, whether it's in WordPress core
or in a common plugin, but it's something I've seen on many blogs, and
it's badly broken. I've looked through a few common related posts plugins
without finding the culprit.
Related posts are often shown at the bottom of a blog post. These link to
a related post, with a long query string looking something like this:
?relatedposts_hit=1&relatedposts_origin=52827&relatedposts_position=2. But
sometimes it's much, much longer. (And sometimes, it's completely absent.
Odd.) Many thousands of characters. This will, of course, cause a 414
error. I've seen this many times on many different websites. I'd like to
fix it, but I cannot find the code.
Example blogs on which I've seen this error more than once:
https://captainawkward.com/ and https://www.lunarmobiscuit.com/ and many
others (intermittently).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62800>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list