Fix templating of model mapped to an url ending with /