#86527XmlSitemapRenderer uses wrong way to fetch page-type
Description
$request->getQueryParams()[‘type’] only works if type was passed as a get-parameter. However if the PageTypeEnhancer resolved the URL the type used is in $GLOBALS[‘TSFE’]->type. (Thanks to Benni for the hint.)