don't use data- for creating relative links. Manipulate each <a> directly