remove full reference url address from templates