Fix bug in determining when a link href is templated