Help save net neutrality! Learn more.

#99 Docs with space chars in their URLs to have _ instead

ccHost (86)

It would be better for documents with space charachters in their names to have their URLs use _ instead of %20, automatically, so they don't look unintelligible in browsers that don't show %20 as a space.


  • Victor Stone

    Victor Stone - 2008-11-14

    sorry, could you give a concrete example of what we're talking about here? Steps to reproduce would be ideal...

  • Dave Crossland

    Dave Crossland - 2008-11-25

    login as an admin, go to manage content pages - /admin/content - and make a new page with two words in the title, eg "one two" and the page URL is now /one-two and the file on the filesystem is theme_files/docs/one-two.php

    But if you create a theme_files/docs/one\ two\ three.php page "by hand", the url is /one%20two%20three

    I suggest that the URL be /one-two-three instead, even though the file name isn't that.

  • Victor Stone

    Victor Stone - 2008-11-25
    • labels: 751589 --> ccHost
    • status: open --> open-wont-fix
  • Victor Stone

    Victor Stone - 2008-11-25

    I've moved this to 'feature request' area because there's no bug here.

    I suppose there is code that could be written to check for a file with spaces when the dashed version is not found but then that wouldn't account for casing or any other potentially encoded character in an URL. The bottom line is that this is pretty much "how the Internet works" and since you are already manually creating the file and the choice to name it is yours, you should name the file the way you want to see it as an URL. The alternative is to map the URLs you wish to see this way in .htaccess mod_rewrite's rules.

  • Victor Stone

    Victor Stone - 2009-04-16

    closed due to non-response for request for usage case

  • Victor Stone

    Victor Stone - 2009-04-16
    • status: open-wont-fix --> closed

Log in to post a comment.