WordPress is removing spaces in query strings
-
We have a URL structure like this…
https://mydomain.com/some-category/?subject=Some+Subject
I’m trying to get pagination properly working. I urlencode() the space and get the +, but it doesn’t matter if I use a space or a + …Wordpress always tries to do this…
https://mydomain.com/some-category/page/2/?subject=SomeSubject
…instead of this…
https://mydomain.com/some-category/page/2/?subject=Some+Subject
WordPress is removing the space/+ for some reason. We haven’t figured out why just yet. Any help is greatly appreciated.
Another user posted something in the plugins category, but probably wasn’t going to get much visibility since it was posted in the wrong category. Thanks for your help.
- The topic ‘WordPress is removing spaces in query strings’ is closed to new replies.