Problem with redirection in global search

Hi, I have a problem. I hope you can help me solve it.
I have a site installed on IIS, which has a pointer:
crm.1gsuite.com
and within this folder, I have several subfolders, each hosting a version of suitecrm 7.14.6. So I have different sites and I use them as:
crm.1gsuite.com/gl
crm.1gsuite.com/ab
crm.1gsuite.com/kz
crm.1gsuite.com/gt

However, I have a problem with this schema and with the global search. When I search for an item in the global search, and when I use the edit option from the global search result, I get redirected. a
https://crm.1gsuite.com/index.php?action=EditView&module=Cases&record=6266807d-c8f3-070a-b56b-67db2c06af0d&offset=1

instead of

https://crm.1gsuite.com/ab/index.php?action=EditView&module=Cases&record=6266807d-c8f3-070a-b56b-67db2c06af0d&offset=1

How could I solve this problem so that in the global search in the edit mode, it redirects me based on the folder I’m currently in?

It’s worth mentioning that this only happens in the global search with the edit option.

In my config, I have:

'host_name' => 'crm.1gsuite.com/ab',
'http_referer' =>
  array (
    'list' =>
       array (
            0 => 'crm.1gsuite.com/ab',
            1 => 'crm.1gsuite.com/ab',
       ),

and in the config_override:
$sugar_config[‘http_referer’][‘list’][0] = ‘crm.1gsuite.com/ab’;

Change your SITE URL in config to the desired URL

‘site_url’ => ‘crm.1gsuite.com/ab’;

1 Like