Replaced deprecated current_path with the Url controller