eliminate URL parameters before comparing URL