ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

valid_url and GET data

August 10, 2010 6:21pm

Subscribe [2]
  • #1 / Aug 10, 2010 6:21pm

    earthisland

    46 posts

    Hi,
    Not a major issue, but maybe there’s an instant fix…
    I’m passing entry titles to an email form a segment in a link on an article page. So a user sees a link ‘write to the editor about this article’. The link is in the form of

    {exp:valid_url}mysite.com/index.php/template/mailForm/{title}/{/exp:valid_url}

    the email form gets the segment as the subject of the email. The valid_url plugin handles spaces, but half-quotes or apostrophes get converted incorrectly, and the browser reports ‘invalid uri’ when it’s clicked. Changing offending titles to include & rsquo ; (ignore the spaces) or the ascii & # 8217 ; gets rewritten by valid_url to be & rsquo % 3B, also invalid.

    Thanks for any ideas,
    Matthew

  • #2 / Aug 10, 2010 7:26pm

    Lisa Wess

    20502 posts

    Hi, earthisland - that would be something you’d need to customize; however, have you considered using the tell a friend form instead?

  • #3 / Aug 10, 2010 7:34pm

    earthisland

    46 posts

    Hi,
    Thanks for your reply. I am using the ‘tell a friend’ form, in addition. Mostly the trick I describe works fine. I suppose it’d be easier to extend the ‘tell a friend’ to write to the author or editor than to reinvent… thanks again,
    Matthew

  • #4 / Aug 10, 2010 7:35pm

    Lisa Wess

    20502 posts

    Hi, Matthew -

    That ability is already there with the tell a friend form, using the recipients= parameter.

  • #5 / Aug 10, 2010 7:36pm

    Lisa Wess

    20502 posts

    Just to add, the other option with your solution is to use {url_title} instead of {title}.

  • #6 / Aug 10, 2010 7:55pm

    earthisland

    46 posts

    Hi,
    Yes, I’m sure that the ‘tell-a-friend’ template is what I’ll use. You can close this out,
    Thanks,
    Matthew

  • #7 / Aug 11, 2010 5:09pm

    Ingmar

    29245 posts

    Glad to see you’re all set. Please post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases