Updated so that the query is ignored when storing to pageInfo.rootURL