make sure $home_path defined
add default lang if it's not existing on url