diff --git a/js/contacts.js b/js/contacts.js index e7127c7a..f3aecaf0 100644 --- a/js/contacts.js +++ b/js/contacts.js @@ -1655,7 +1655,7 @@ OC.Contacts={ } var contact = params.data ? $('
  • ' + params.data.displayname+'
  • ') diff --git a/lib/search.php b/lib/search.php index b91994f8..97154c0e 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 } }