Admin Dashboard redirect
-
Hi everyone, I’m facing an issue with my Bagisto installation.
Sporadically, in the admin panel, while navigating through the pages, there are moments when I'm unable to access certain sections. When I click on some pages, it doesn’t let me enter — instead, it redirects me back to the main dashboard.
I really can’t figure out why this is happening. It feels like I’m not authorized to access some pages, even though I should be.
I’d like to understand what could be causing this issue and how I can prevent it from happening again.Thanks in advance for your help!
-
@Nicola_cascella Hi everyone, I continued testing and debugging the issue, and it seems to be related to browser caching.
On the browser that had the problem, it still happens; meanwhile, on another browser using the same user at the same time, it works fine. Also, in incognito mode on the problematic browser, the issue disappears.
So I suspected it was a browser cache problem.
At that point, I opened DevTools and disabled the cache from the Network panel — and the problem went away. Even after re-enabling the cache, the problem did not return immediately. But if I let the browser run for an indefinite amount of time, the problem comes back.In conclusion, I think this is the cause.
Has anyone else experienced the same problem? Did you find a solution? Or is there a Bagisto maintainer who knows what might be causing this?Thanks in advance!
-
Hello @Nicola_cascella
Its a general behaviour of every websites that cache get stored.
For this you can clear your website cache by running the command
php artisan optimize:clear
Warm Regards
Team Bagisto