Fixed @href template selection