This is the bit mentioned in the description up above. The old code blindly appends the value onto the url.