CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • form submit causing unwanted redirect to home page
Pages: [1]

Author Topic: form submit causing unwanted redirect to home page  (Read 564 times)

lee

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 4.2.16
  • CMS version: wordpress 3.8.1
  • MySQL version: 5.6.14
  • PHP version: 5.4.4.
form submit causing unwanted redirect to home page
June 26, 2014, 12:29:54 pm
My form confirmation pages are redirecting to the home page. The redirecting url is chopping off the first part of url with page name and also the id at the end, for example the following:

http://sitename.org/myform/?page=CiviCRM&q=civicrm/event/register&id=11&reset=1

becomes:
http://sitename.org/?page=CiviCRM&q=civicrm/event/register

Does anyone know what is causing this?

Thanks

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: form submit causing unwanted redirect to home page
June 26, 2014, 04:35:52 pm
Please don't post the same topic more than once.  ( I have removed the three other posts of this same topic)

I presume as your posts were spaced an hour or so apart you were  concerned by the lack of response.  The forum is maintained by community members ie people who also have paid jobs and who provide help in a volunteer capacity.  You can't expect an immediate response to your post. 

If you really need an immediate response you should consider paying for help  https://civicrm.org/providers.


Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: form submit causing unwanted redirect to home page
June 27, 2014, 03:54:01 am
lee, I am not sure what the issue is. Is your base URL set correctly in civicrm.settings.php?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

lee

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 4.2.16
  • CMS version: wordpress 3.8.1
  • MySQL version: 5.6.14
  • PHP version: 5.4.4.
Re: form submit causing unwanted redirect to home page
June 27, 2014, 11:10:39 am
Thanks Hershel,

yes the basURL is set correctly in settings. However the specific donation and event pages that hold those forms are not being maintained when moving through the different stages of the form. The form appears initially on the intended page, but then on submit I'm getting the confirm part of the form in an incorrect page—the baseURL instead of the page where the event or donation shortcode has been added.

redirects to www.mysite.com
instead of www.mysite.com/myformpage

Any ideas how to fix that.

ps, sorry for the dupes.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • form submit causing unwanted redirect to home page

This forum was archived on 2017-11-26.