wrap template href with function for consistency