Fix wrong if statement in the url template