Problem/Motivation
The motivation for this largely comes from the fact that dashboards don't get the "back to site" link in the toolbar, and if you go to a dashboard and then to a "real" admin page, the "back to site" link goes to the dashboard instead.
Steps to reproduce
Create a dashboard and visit it. Note that there is no "back to site" link in the toolbar.
Proposed resolution
It would seem to make sense to tie this into whether the dashboard is showing the front end theme or the admin theme, but I could also see this being another setting on the dashboard edit page.
Remaining tasks
Figure out how to do this, and implement it. :)
User interface changes
Could potentially be an additional setting, as noted in the proposed resolution.
API changes
None, I think.
Data model changes
None, I think.
Comments
Comment #2
erik seifert commentedShould have a look on https://www.drupal.org/project/drupal/issues/3129705
Comment #4
erik seifert commentedI add a simple css override to show the button on dashboard pages. You can check the dev version.
Comment #5
kpaxman commentedThis does show the "back to site" button, but it always returns you to the home page, as opposed to the last non-admin page that was visited.
In addition, this does not fix the issue that if you go to another admin page after visiting a dashboard, that admin page's "back to site" link will link to that dashboard.
I will look more at the core issue.
Comment #6
kpaxman commentedI applied the latest core patch from #3129705: Back to site button gone on several admin pages, and that did not fix the issues with the "back to site" button with the dev version, and if I roll back, does not make the "back to site" button appear.
Comment #7
kpaxman commentedInspired by that core ticket, I did find that if I made the routes start with /admin/dashboard/{dashboard} instead of /dashboard/{dashboard}, then the "back to site" link does both appear and function as it would be expected to on an admin page, without the CSS change made in the dev version of this module.
I'm not sure if this has unwanted side effects or would break things if people chose not to display in the admin theme.
Comment #8
erik seifert commentedTo use this functionality, users would need to have a "Use the administration pages and help" permission. This would lead to some implications.
Therefore I will not implement this feature.
I am waiting for a solution to the core bug.
Comment #9
erik seifert commentedI will leave the report and add a relation to the core bug.
Comment #10
erik seifert commented