PDA

View Full Version : Newly registered Owner-Account Gets SEO_BASE as URL



Morgan Bohman
August 9, 2012, 05:41 AM
Hi,
Yesterday I had a new owner account registered and the owner_account page gets this Personal Address: SEO_BASEowner-accounts/v-laboden.html. (The full name in swedish should be v

Vladimir
August 9, 2012, 07:02 AM
You can fix it in the following way:

- open the file /includes/classes/rlAccount.class.php
- go to method getProfile();
- find this code:



if ( $config['account_wildcard'] )
{
$data['Personal_address'] = 'http://'. $data['Own_address'] .'.'. str_replace(array('http://', 'https://'), '', SEO_BASE);
}
else
{
$data['Personal_address'] = SEO_BASE . $data['Own_address'];
}


and change it to:



if ( $config['account_wildcard'] )
{
$data['Personal_address'] = 'http://'. $data['Own_address'] .'.'. str_replace( array('http://', 'https://'), '', SEO_BASE );
}
else
{
$data['Personal_address'] = REALM ? RL_URL_HOME : SEO_BASE;
$data['Personal_address'] .= $data['Own_address'];
}


We've fixed this problem in new version (4.1)