change template from if title to if url