For example, if the URL is ?a=1&b=1 and we want to update it with
?a=2&b=3, updating 'a' but toggling 'b', then we can specify
mode='b=toggle'. This will only toggle 'b', not 'a', and result in the
URL ?a=2&b=1&b=3