Add url generator to fix template urls