WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Single quotes in target url mess things up after saving

[Resolved] Single quotes in target url mess things up after saving

  • tfmwa
    Member

    @tfmwa

    When creating a Prettylink for:

    http://www.blablablablabla.com/ebook_'loving_it'/buy

    And pressing save, the url gets turned into:

    http://www.blablablablabla.com/ebook_\'loving_it\'/buy

    You can see this after opening the url again in Prettylinks after saving it. Redirection plugin (which I want to ditch) seems to handle this in a way that doesn’t cause any problems (it saves the link as entered).

    Please note that I do not use special characters in my links, but sadly third parties aren’t always willing to cooperate. In this case the ebook title is also used as part of the url in the affiliate network.

    Is there anything that can be done to handle urls with special characters?

    http://wordpress.org/plugins/pretty-link/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author cartpauj
    Participant

    @cartpauj

    I’ll get this on our bug tracker, but technically quotes should not be in URLs per convention. You can try encoding them like this though:
    http://www.blablablablabla.com/ebook_%27loving_it%27/buy

    tfmwa
    Member

    @tfmwa

    Hi cartpauj,

    Thanks for your reply and for considering this suggestion.

    I know where you’re coming from. I’ve suggested the same thing to the product owner (to change it) and the affiliate network (to not allow special characters).

    Thanks for your suggestion to work around the issue. I’ll give it a go!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Single quotes in target url mess things up after saving’ is closed to new replies.