New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[UX] Running cron via the Admin Bar menu always redirects to the "Status report" page #3973
Comments
This is bug? Not sure. After run cron you can see if something going wrong on status report page. |
I agree with @findlabnet - this isn't really a bug. Sometimes it could be better to not get redirected, though. If - for instance - something's weird on a page (a view) and the admin want's to check if a cron run fixes it. On the other hand the status report page could offer helpful information. Personally, I don't have any preference regarding a redirect. Both is OK for me. |
That's actually the experience I've had twice before I filed this as a bug. For the record, the D7 version of the admin_menu module only "redirects" to the "Status report" page if the core Overlay module is enabled (but we have removed the Overlay module from Backdrop). Even then, that is not redirecting exactly, as what happens is that the "Status report" page loads in an overlay/popup, which the user can easily close, to get back to the page they were when they run cron from: ...if the user runs cron (either via the admin_menu menu, or via the "No update info available" warning) while the Overlay module is disabled, they remain in the page they initiated the cron run from: So I still think this is a bug, and would expect this to work the same way that clearing caches via the Admin Bar menu works. Lets wait for more feedback before we action this though. |
Are you sure? I always disable the overlay module in D7. Running cron via the admin_menu always redirects me to the status page. In this case Backdrop behaves exactly the same as D7 with admin_menu. |
You are right. I have tested this in simplytest.me, with admin_menu 7.x-3.0-rc6. Here's what I've tried once the sandbox was spun up:
|
I think people shouldn't be redirected after running cron. If the only reason is to see if there are issues after doing so, then that's what the notification badge is for. Let's remove the redirection and make everything consistent (since clearing caches and running cron via other methods don't cause a redirect). |
Here's a simple PR. |
👍 to that! ...the PR is very simple indeed, and works fine, but I would like us to consider what happens when cron fails to run (unfortunately, I don't know how to simulate that 🤔). Also, there is still a |
...perhaps when cron fails, it makes sense to be redirecting to |
So there's three places that run cron:
I've updated my PR to simplify this so that |
Also, if this PR doesn't get in (or my change to |
Steps To Reproduce
Run cron via the "Run cron" menu item, under "Home"...
Actual behavior
You get redirected to
/admin/reports/status
and get a "Cron ran successfully." messageExpected behavior
You should stay on the same page.
PR by @BWPanda - backdrop/backdrop#2900
The text was updated successfully, but these errors were encountered: