Fixed adding ID for URLS that end in '?'