PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Form has incomplete permalink in form action

  1. Hi All,

    I have Gravity forms included in a template page using the following code:

    <?php gravity_form(1, true, false, false, '', true, 12); ?>
    and just before wp_head() :
    gravity_form_enqueue_scripts(1, true);

    it is being included correctly but for some reason the permalink in de form itself is not correct. I have it installed on a subforlder in my localhost:
    http://localhost/subfolder/en/about/

    However, when I check the HTML form code it looks like this:
    <form method="post" enctype="multipart/form-data" target="gform_ajax_frame_1" id="gform_1" action="/en/about/#gf_1">
    As you can see, it tries to submit to the folder /en/about/ while it should be /subfolder/en/about/

    Does anyone has any idea why this would happen?

    EDIT: the same happens when I use the tag {embed_url} for any predefined value, it gives back http://localhost/en/about/ instead of http://localhost/subfolder/en/about/

    Posted 11 years ago on Thursday March 28, 2013 | Permalink
  2. What are your WordPress settings for "WordPress Address (URL)" and "Site Address (URL)" in your WordPress admin?

    Posted 11 years ago on Sunday March 31, 2013 | Permalink
  3. They are:

    http://localhost/subfolder/ (for both, as it should)

    Gravityform atm takes only localhost instead of the full url.

    Posted 11 years ago on Wednesday April 10, 2013 | Permalink
  4. The weird thing is that when I change the permalink structure of the website from:

    http://localhost/subfolder/%postname%/
    which gives me without the subfolder, so: http://localhost/subfolder/en/about/

    and then change it to the default:
    http://localhost/subfolder
    it gives me the correct URL in gravity forms.

    However, no matter the change here above, everything else on the website works fine, get_permalink(), site structure, etc...

    Posted 11 years ago on Wednesday April 10, 2013 | Permalink
  5. never mind, you can close this one. Seemed that a third party plugin was screwing with the permalinks. Deleted it and problem solved itself.

    Posted 11 years ago on Wednesday April 10, 2013 | Permalink