replace hard-coded url with template variable