add ability to use a target that contains a query string

Check the target option to see if it already contains a query string, then properly append the query option parameters to the URL.