don't pass through the whole url, exclude the query string (bug 1001554)
Merge pull request #452 from andymckay/1001554

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