Closed haivala closed 3 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
basically this means that the pageBundle does not support dot route name notation for lang
Environment
Dockerized linux Symfony project
Sonata packages
Symfony packages
PHP version
Subject
I have
$page = $cms->retrieve()->getCurrentPage()
in my dynamic page controller and it was working fine. Then I tried to use this: https://symfony.com/blog/new-in-symfony-4-1-internationalized-routing and now the it does not workSteps to reproduce
Expected results
$currentPage exists https://github.com/sonata-project/SonataPageBundle/blob/3.x/src/CmsManager/BaseCmsPageManager.php#L30
Actual results
$currentPage is null and trying to access the dynamic page gives this error: Sonata Project - Internal Error No page instance available for the url, run the sonata:page:update-core-routes and sonata:page:create-snapshots commands