Detect redirect when importing template pages to modify address as reference URL for download of linked resources