Hallo everybody,
I recently upgraded to 7.14.4.
When I do a global search, and I got some results, the link to contact using the little pen on the left is broken, while the link on the name is ok.
On the little pen icon the link is http://<myservername>:<myport>/index.php?action=EditView&module=Contacts&record=..
Clicking on the name the link is http://<myservername>:<myport>/suitecrm/index.php?action=EditView&module=Contacts&record=..
Is it a bug or some setting on my installation ?
TIA
search here.
Try checking the site URL is correct in your config file config.php
‘site_url’ => is ok
I didn’t change config.php, just updated SuiteCrm from 7.13 to 7.14
‘site_url’ => is ok.
and other links in the search result page are ok.
Just the little pen is a broken link (both on contacts and on account)
I just tried it in the live demo
and it is the other way around; the pen icon does work
https://demo.suiteondemand.com/index.php?action=EditView&module=Contacts&record=114f27b2-a985-2c2f-8d46-668e69e1a974&offset=1
but clicking on the name doesn’t work:
https://index.php/?action=DetailView&module=Contacts&record=114f27b2-a985-2c2f-8d46-668e69e1a974&offset=1
In config.php, apart from site_url, I suggest checking also host_name
‘host_name’ => ‘crmhost.company.eu’,
‘site_url’ => ‘http://crmhost.company.eu:port/suitecrm’,
Obviously, I can see the wrong link pointing the mouse.
I’m having a look at lib\Search\SearchResults.php but I’m unable to find a bug, I suppose is in another source
Maybe I am pointing the obvious
but look in the config_override.php as well
Current code works when the CRM is at the root of the server, but not when in a subfolder.
Actually, APP_CONFIG is not initialized when displaying the search.results.tpl template.
I suggest you add
$smarty->assign('APP_CONFIG', $GLOBALS['sugar_config']);
in function display of lib/Search/UI/SearchResultsController.php.