Matching using template urls