Using twig formatter for blog posts fails

Using twig formatter and trying to use {{ path('some_path_name_here') }} fails, because the current site cannot be determined. Null is returned which triggers an error, because implementation is expected.

The error is invoked at Sonata\PageBundle\Route\CmsPageRouter:getPageByPageAlias() on line 287.