Fix substitutions of id urls