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 »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Login redirect to full contact search
Pages: [1]

Author Topic: Login redirect to full contact search  (Read 1581 times)

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Login redirect to full contact search
September 30, 2008, 07:47:15 am
Hey all,

I am using some code to redirect certain users to a specific page. For one of my user roles, I want them to be directed to a civicrm page that is essentially what would come up if you did a search with no parameters (ALL contacts). Is there a way I can do this? It seems that when pressing the search button some session info is generated like so:
civicrm/contact/search/basic?_qf_Basic_display=true&qfKey=2e38145f0b3c14ef80f12c3092ba094e

and just doing civicrm/contact/search/basic?_qf_Basic_display=true doesn't return any results upon initial login...is there any way to do this?

thanks!

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Login redirect to full contact search
September 30, 2008, 10:04:58 am
Hi,

That's what you're looking for ?

http://sandbox.civicrm.org/civicrm/contact/search?reset=1&force=1

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Login redirect to full contact search
September 30, 2008, 10:17:04 am
Yes, Xavier! I knew there was a way! Thanks.

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Login redirect to full contact search
October 07, 2008, 09:45:03 am
one more q: is this a new feature as of 2.1? I notice it doesn't work with my 2.0 sites...

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Login redirect to full contact search
October 07, 2008, 10:37:27 am
Emily - Just tried this on my 2.0 local sandbox and it did the trick:

http://<my site>/civicrm/contact/search/basic?reset=1&force=1
Protect your investment in CiviCRM by  becoming a Member!

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Login redirect to full contact search
October 07, 2008, 11:31:02 am
User error; you're right as always :)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Login redirect to full contact search

This forum was archived on 2017-11-26.