#54 - fix for query string not being removed from path