update link
replace variable in template