I had that exakt line earlier and it didn’t work when I tried to navigate to a category page. The ParentPageSystemId
was still an empty Guid. In the build-method
you refer I changed to look at the RawUrl
of the request and compare it to the startpageUrl. Got it working for now