fix ? at end of GET url