Add/remove query strings and aliases as appropriate