You cannot.
Why?
I'm modify core, now link expected localhost/hesla
404 error can you please suggest a solution
if(isset($params['sCity'])) {
if(osc_list_city_id()==$params['sCity']) {
$url .= osc_sanitizeString(osc_list_city_slug()) .
'-c' . osc_list_city_id();
} else {
if(is_numeric($params['sCity'])) {
$city = City::newInstance()->findByPrimaryKey($params['sCity']);
} else {
$city = City::newInstance()->findBySlug($params['sCity']);
// if(!isset($city['pk_i_id'])) { // update 440
// $city = City::newInstance()->findByName($params['sCity']);
// }
}
if(isset($city['s_slug'])) {
$url .= osc_sanitizeString($city['s_slug'] != '' ? $city['s_slug'] : $city['s_name']);
} else {
// Search by a city which does not exists (by form)
// TODO CHANGE TO NEW ROUTES!!
// return $url . 'index.php?page=search&sCity=' . urlencode($params['sCity']);
// Lang code in base URL cannot be used
// return osc_base_url(false, false) . 'index.php?page=search&sCity=' . urlencode($params['sCity']);
}
}
}