Pass query to fetched URL

This fix is prompted by
 http://www.javapractices.com/topic/TopicAction.do?Id=25