Your best bet with Drupal is to use the Rules module. I think you also need to have CiviCRM Entity installed to get the proper tokens.
Add a new Rules Component:
Component Plugin: Action Set
Name the component (e.g.: Fetch CiviCRM ID of logged in user)
You only need one variable, choose CiviCRM > CiviCRM Contact (may need the CiviCRM Entity module for ...
<p>Thanks for supporting our organization with your membership. You can learn more about membership benefits from our members only page.</p>
window.location = "https://civicrm.org/"
Xavier's answer is generally right but because you are in the context of a form I advise don't use the function CRM_Utils_System::redirect because that is a rather blunt instrument, and breaks pop-ups and other ajax-based forms (which don't follow the normal round-trip webpage lifecycle). Instead from your hook you can call CRM_Core_Session::singleton()->...
It could be the SSL. Verify the home url (WordPress General settings) and the CIVICRM_UF_BASEURL in the civicrm.settings.php file.
These should match exactly including the https:// If not that can be the issue.
If it matches I would look for a plugin or theme conflict next.
Allen has a great explanation for how to do this, particularly for anytime anyone logs in. Just for completeness, I wanted to make sure this simple option was documented, too.
You may not really want all logins to go to the contact dashboard. It may be really that you want certain links to lead people there, but others logging in (you and other admins, ...
The way I did it
In my most recent extension with a fair amount of CRUD happening via the UI, I used a different form at a specific URL (civicrm/sms/conversation/confirmdelete) for deleting. This gave the user the chance to see what they were deleting and confirm it.
I then set the context in preProcess of that form, deleted the entity in postProcess, and ...
Have you looked at adding a .tpl.extra file? This can be a very easy way to add more content to any template.
Instructions are here.
You can redirect using the
to build the url itself.
you can as well display pop up messages using CRM.alert() or CRM.status()
That page describes the options or how to call them from php too:
Depending on the exact flow you need you may find this Fuzion extension offers what you need as it provides fields eg on an Event where you can specify the page to redirect to after submission.
Note it has a dependency on another Extension
This is not supported by CiviCRM by default and i cant find any drupal modules which can do the redirect from the thank you page.
If you are a developer, you can do this using hook_civicrm_buildForm hook.
We have done something similar to redirect from thank you page using buildForm hook. I have packaged the hook in an extension. You can download the ...
It looks like the same behavior occurs on the official CiviCRM/WP demo site. The browser title for this demo page:
Does not match the generic title being scraped by FB:
Meanwhile, the CiviCRM/Drupal ...
I am not familiar with WPML, but what I normally do with multilingual sites is that I add one profile per language, that way you can also create the field labels as you want.
That way you can set the redirect URL as you want.
In WordPress you can then use a different shortcode per language to embed the profiles.
So when filling the form, you submit it (the data is into the post, so you have the feeling it's truncated as you don't see the params in the log/net tab). Once that data is processed, it needs to display something (the confirmation that everything went well).
They are two ways of doing that:
- either the result of the post is the confirmation message
- or ...