fix for broken paths when URL requests have query or fragment parts