Hi,
I had a few issues with replacing image or pdf filenames with spaces in the path.
E.g. this one:
https://www.gelasta.nl/image/catalog/data/Certificaten/Uitleg%20symbolen.pdf
What are the best practices to deal with this?
We use cookies to allow login, checkout, and analyze site traffic. By continuing to use this website, you consent to the use of cookies in accordance with our cookie policy.
OnPoint Plugins
Hi Almar,
Typically URL contain %20 in place of a space as browsers do not understand a blank
.
Best practice is to leave the
%20
in place so browsers understand the URL.Have a great night!
Almar Hijlkema
Ok.
But then in many cases the URL is not recognized anymore in the Plugin.
I noticed that it’s only been recognized when I end with the %20 in the URL string.
So therefore in many cases I cannot solve the issue anymore with Go Live. And that is getting rid of the space.
Almar Hijlkema
So e.g. Go Live does see this one:
https://www.gelasta.nl/image/catalog/Pit%20
But not when entering the full URL:
So I cannot think of a way to get rid of the space in the original URL
OnPoint Plugins
Hi Almar,
Sounds like you may have gotten this to work on the other ticket.
https://onpointplugins.com/plugin-support/created-very-bad-media-url/
Let me know if you still need anything here.
Almar Hijlkema
It still is a bit uncertain with the %20.
Sometimes is have to replace it with real <space> in Go Live in order to recognize the URL or is only works when there is nothing behind the %20.
OnPoint Plugins
Hi Almar,
I was able to track down the cause of the issue. Turns out the sanitization which happens before update is stripping out any special URL characters before counting or updating.
I have logged a task on our end to path this issue in a future version of the plugin. In the meantime, you may add the following filter to your active theme’s functions.php file to support replacing
%20
with ‘ ‘.Have a great weekend!
OnPoint Plugins
Hi Almar,
I wanted to stop in to let you know, this has been patched in version 6.4.2 of the plugin.
You may update the plugin and remove the above custom filter.
Have a great day!
Almar Hijlkema
That’s great! Many thanks for making the product even better..
I will try it out as soon a have to use the tool again.