Add url fragments to templates