[BUGFIX] Fix issue #61843 from forge: rootline handling for siteroots other than id=1

refs 36a55e6