Removing a tailing ? when returning URLs.