bug on returned url in config.php fixed by adding the define_base_url function