Fix base template and url