Update the search on redirection
Load template from the document type