Extend the regex to transform the link id