#103789Add close button to page layout, if returnUrl is set
Description
If the page layout is opened from another module, it would be helpful to show a close button and return to the calling module on close.
Similar behaviour already exists for the edit form where you can pass a return URL either with
- backend:uri.editRecord ViewHelper (with returnUrl argument)
- UriBuilder::buildUriFromRoute(‘record_edit’ ..
(both are effectively the same, as the editRecord ViewHelper calls buildUriFromRoute.
Possible implementation
- if an argument “returnUrl” is set, show a close button in the page module, using this returnUrl as link