change html to indirect links to resources