From b5cb037e739f320d8207800eaee4f4fd55c16ce1 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Wed, 15 Aug 2012 18:13:08 +0200 Subject: [PATCH] Fix linkTo calls for new routing --- js/contacts.js | 2 +- lib/search.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/contacts.js b/js/contacts.js index f88e452b..c467cab6 100644 --- a/js/contacts.js +++ b/js/contacts.js @@ -1690,7 +1690,7 @@ OC.Contacts={ } var contact = params.data ? $('
  • ' + params.data.displayname+'
  • ') diff --git a/lib/search.php b/lib/search.php index 53aa2b48..c86bc12c 100644 --- a/lib/search.php +++ b/lib/search.php @@ -11,7 +11,7 @@ class OC_Search_Provider_Contacts extends OC_Search_Provider{ $vcards = OC_Contacts_VCard::all($addressbook['id']); foreach($vcards as $vcard){ if(substr_count(strtolower($vcard['fullname']), strtolower($query)) > 0) { - $link = OCP\Util::linkTo('contacts', 'index.php').'&id='.urlencode($vcard['id']); + $link = OCP\Util::linkTo('contacts', 'index.php').'?id='.urlencode($vcard['id']); $results[]=new OC_Search_Result($vcard['fullname'], '', $link, (string)$l->t('Contact'));//$name,$text,$link,$type } }