we need to enable the flat parameter otherwise the pageUrls filtering would not work