update url for subtemplate