When you use a block to embed a View into a WordPress page or post, the "back" button on the Single Entry page should go back to the page where the View is embedded. However, if the Single Entry Layout is set to "DataTables Table", this link goes to the View CPT link (i.e.,/view/view-name/) instead of the page.
Steps to reproduce:
Create a new View using the DataTables View Type
Configure the Multiple & Single Entry pages
Embed the View on a new page using the block
Open the page on the front end; click on an entry to open the Single Entry page
Click the "Back" link
Confirm that you are taken to the /view/view-name/ CPT, instead of the page where the View was embedded.
Change the "Single Entry Layout" to a different View Type using the switcher; confirm the "back" link works as expected.
When you use a block to embed a View into a WordPress page or post, the "back" button on the Single Entry page should go back to the page where the View is embedded. However, if the Single Entry Layout is set to "DataTables Table", this link goes to the View CPT link (i.e.,
/view/view-name/
) instead of the page.Steps to reproduce:
/view/view-name/
CPT, instead of the page where the View was embedded.WordPress 6.6.1 PHP version is: 7.4.33