OnPoint Plugins

  • Plugins
    • Advanced Sidebar Menu
    • Go Live Update Urls
  • About
    • Services
    • Showcase
  • Blog
  • Contact
  • Support
  • Log In
← Back to support

How to deal with spaces in filenames?

Resolved

Requested: 1 year and 2 months ago

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?

 

 

Plugin: Go Live Update Urls

  1. OnPoint Plugins

    1 year and 2 months ago

    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!

  2. Almar Hijlkema

    1 year and 2 months ago

     

    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.

  3. Almar Hijlkema

    1 year and 2 months ago

     

    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

     

  4. OnPoint Plugins

    1 year and 2 months ago

    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.

  5. Almar Hijlkema

    1 year and 2 months ago

     

    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.

     

     

  6. OnPoint Plugins

    1 year and 2 months ago

    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!

  7. OnPoint Plugins

    1 year and 2 months ago

    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!

  8. Almar Hijlkema

    1 year and 2 months ago

     

    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.

     

     

New Response Cancel reply

You must be logged in to respond. Only PRO members are allowed to respond to support requests.

© 2023 · WordPress Development · Terms Of Service · Privacy Policy · Cookie Policy · Log in

  • Plugins
  • Blog
  • Contact