Additionally added URL params leading to “Invalid post type.” in the Admin Panel

I’ve a bug that I cannot reproduce on my local/staging evn and occurs only on prod(having the same code, db and files). Here is what I get when visiting all of the default post types/taxonomies or custom created by me or plugins(it’s not bugged on settings pages for ex):

When visiting /wp-admin/edit.php?post_type=page the page loads as it should, immediately after it load the URL changes to

/wp-admin/edit.php?post_type=page%3Fpost_type%3Dpage

therefore any further action in this window will lead to Invalid post type.
Updating the core and all of the plugins, or removing all of them didn’t fixes the issue. Couldn’t find anything related in the debug.log. Only when I disable my browser JS it’s working fine, but I don’t load any custom script to the wp admin.

I’ll really appreciate if someone can give a hint, thanks in advance.

Read more here:: Additionally added URL params leading to “Invalid post type.” in the Admin Panel

Leave a Reply

Your email address will not be published. Required fields are marked *