EZP-22193: Fixed (badly) sub-requests & legacy URL generation

Prevents _fragment from being used as siteaccess part.