Support » Fixing WordPress » Permalinks have extra space character at end, why?

  • Resolved bwooster47

    (@bwooster47)


    I just noticed that while my permalinks looked correct when I click on them or in the browser URL address bar, they actually had a extra %20 space character at the end.
    I found this when I did a “Copy Link” on the Permalink: link at the Edit Post page.
    Ex: https://www.example.com/some/path/%20

    I wrote some PHP code, and sure enough, calling get_permalink(id) returns the same extra character, on all of the ids I checked.

    Any hints on how to fix this, or what I should investigate next?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    Try re-saving your permalink structure at Admin panel>>>Settings>>>Permalinks. Sometimes, that works if it is a simple db issue. WordPress will either create/rebuild the .htaccess file. If WordPress cannot automatically edit the .htaccess file( if it is not writable), then WordPress will provide manual instructions after saving the correct block of code so that you can manually add it to your .htaccess file. More Info: http://codex.wordpress.org/Using_Permalinks

    Thread Starter bwooster47

    (@bwooster47)

    Excellent, thanks, I changed it something else, saved it, and then redid the custom setting to /%category%/%postname%/ again, and after this there are no stray characters.

    I guess there must have been a space in my setup before I did the above steps.
    In any case, all fixed now, thanks.

    Moderator t-p

    (@t-p)

    Glad to know it 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Permalinks have extra space character at end, why?’ is closed to new replies.