Simplifying url template so it can be evaluated by a simpler function