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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Profile in Joomla 1.5 custom module not redirecting properly
Pages: [1]

Author Topic: Profile in Joomla 1.5 custom module not redirecting properly  (Read 3237 times)

nocabt

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 1
Profile in Joomla 1.5 custom module not redirecting properly
September 19, 2008, 09:49:02 pm
Hi,
We're using the standalone code for a profile which we've inserted into a Joomla 1.5 mod_custom module (to use as a email signup), but when  you submit the form it redirects to the Joomla Admin instead of the redirect we specified in the profile.  This happens even if I set the redirect to be something like google.com.  We're running CiviCRM v 2.1 beta4.  The URL it seems to redirect to is:

http://<site root>/administrator/index2.php?option=com_civicrm&task=civicrm/profile/edit&gid=1&reset=1&

Thanks!

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Profile in Joomla 1.5 custom module not redirecting properly
September 21, 2008, 05:52:11 am
Hmm. Looks like a bug. I am not sure if standalone code will work in joomla. Can you file an issue for this.

Kurund
Found this reply helpful? Support CiviCRM

nocabt

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 1
Re: Profile in Joomla 1.5 custom module not redirecting properly
September 22, 2008, 09:58:47 am
I filed an issue here:
http://issues.civicrm.org/jira/browse/CRM-3587

Never done that before, hope I followed protocol.

Thanks.

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Profile in Joomla 1.5 custom module not redirecting properly
September 23, 2008, 06:35:38 am
Issue has been fixed now - http://fisheye.civicrm.org/changelog/CiviCRM-2-1/?cs=17201

All you need to do is replace '/administrator/index2.php' with '/index.php' in the standalone-html-code. And that 'll not require administrator login though it 'll redirect to profile/view.

In order to redirect to a different url (after save) other than profile/view, you 'll need to hack around line-226 to 236 in the file: civicrm/CRM/Profile/Form/Edit.php

For redirect on cancel you 'll only need to change the url for input field 'cancelURL' in the standalone-html-code.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

nocabt

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 1
Re: Profile in Joomla 1.5 custom module not redirecting properly
September 23, 2008, 01:26:07 pm
Worked perfectly, thanks!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Profile in Joomla 1.5 custom module not redirecting properly

This forum was archived on 2017-11-26.