don't pass through the whole url, exclude the query string (bug 1001554)