[BUGFIX] Override path for subpages

If the checkbox for tx_realurl_pathoverride is enabled
the path of the subpages is now also overwritten.

Resolves: #54764
Change-Id: Ic1a897b468f44bfae2d8e2148f832b5980729a20