fixes bug in capturing param templates with renamed links in them