sonata-project / SonataAdminBundle

The missing Symfony Admin Generator
https://docs.sonata-project.org/projects/SonataAdminBundle
MIT License
2.11k stars 1.26k forks source link

Editing blocks from Composer, cannot go back to current Page #2613

Closed ronanguilloux closed 9 years ago

ronanguilloux commented 9 years ago

This affects the admin-bundle, "~2.2,>=2.2.9" versions:

Using Admin interface, in Page edition, editing blocks using block edition (menu entry) leads you to /admin/sonata/page/page/[pageId]/block/list. There, editing a block now leads you to /admin/sonata/page/page/[pageId]/block/[blockId]/edit. Arrived at this point, you can always go back to the page edition using both a contextual page edition menu (left-hand side) or the breadcrumb links.

Instead, editing blocks using the (great!) Composer, which is in a Beta Version, leads you to a /admin/sonata/page/block/[blockId]/edit (no pageId variable in this URL) view, where there is no contextual page edition menu or available breadcrumb link to click on : you cannot go back to the page edition from this view.

ronanguilloux commented 9 years ago

Not sure : this may concern page-bundle instead.

ronanguilloux commented 9 years ago

Seems to be fixed in master, after a "Move 'compose' block preview rendering to php" recent commit (f9ff4fa4a36930c331fa4ff2ed9097f47aca34f4). But I cannot easily upgrade my local version. Someone may confirm this bug has already been fixed?

pulzarraider commented 9 years ago

This issue seems to be related to SonataPageBundle so please report the issue to the correct place.