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.

Contact form return URL mangled

February 07, 2011 6:25am

Subscribe [2]
  • #1 / Feb 07, 2011 6:25am

    LucPestille

    146 posts

    Hi,
    I’m using a contact form embedded in an {exp:entries} tag, where each form redirects people to a unique URL (it’s url_title) after submission;

    The embed:

    {exp:email:contact_form user_recipients="false" recipients="[email protected]" return="information-centre/truth-guides/{embed:url_title_redirect}" charset="utf-8"}
    
    <!-- {embed:url_title_redirect} -->

    {embed:url_title_redirect} is correct, just the url_title for the entry.

    However, EE is spitting out the return URL as

    <input type="hidden" name="RET" value="{homepage}information-centre& amp;# 47;truth-guides& amp;# 47;the-burning-issue" />
    <input type="hidden" name="URI" value="/information-centre/truth-guides/" />

    I had to add spaces for the forums to show the & #47.


    And redirecting people to just /information-centre/truth-guides/

    Any ideas?

    Thanks,

  • #2 / Feb 07, 2011 6:36am

    LucPestille

    146 posts

    And of course, 2 minutes after posting I manage to fix it - for whatever reason, embedding the full return URL, rather than just adding on the url_title seems to have fixed it.

  • #3 / Feb 07, 2011 4:54pm

    Ingmar

    29245 posts

    Very 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