Miodified Template Regex

Modified regex in LinkGenerator to recognize template with file extension.