When updating from TYPO3 8.7 to TYPO3 9.5 you might drop the realurl extension in favor for the new routing feature.
But you might notice, that realurl appended a / to a
You can use the PageTypeEnhancer for mapping &type parameter in your site configuration (config.yaml file):
routeEnhancers: PageTypeSuffix: type: PageType default: '/' index: '' map: '/': 0