Merge pull request #6791 from cocoscodeide/v3

fixed head search path for  template