update structure to have relative link refs from template