Small change to append an ampersand instead of a question mark if the url already has a question mark in it