replace url in last template part