Hack to remove the trailing slash that is being inserted after the query string.