Changed the template provider match "template" if as string against an url regex, if it fails the template it self is returned.