Redirect filetype after applying template