Hey Guys,
How can one persist the sidebar state across pages? As soon as we go to a new page, the sidebar is expanded again.
Thanks in advance
https://devs.keenthemes.com/question/persist-aside-menu-state-minimized-or-not-in-cookie
Buradaki konuyu inceleyebilirsiniz
Hi Michael,
Thanks to Murat Ãzcan for the link
https://devs.keenthemes.com/question/persist-aside-menu-state-minimized-or-not-in-cookie
Could you please edit in this file based on the above guide:
starterkit/resources/_keenthemes/src/metronic/demo1/js/layout/sidebar.js
Thanks
Great, thanks @Murat & @Faizal
Glad it works.
Thanks
Just a heads up for anyone that sees this in the future, be sure to add the relevant cookies into /app/Http/Middleware/EncryptCookies.php
.
I added the following which were all coming up in the developer console:
protected $except = [
"sidebar_minimize_state",
"kt_aside_toggle_state",
"kt_aside_menu",
"data-kt-app-sidebar-minimize"
];
Hello Michael,
Thank you for sharing your solution with the community. Your suggestion to add the relevant cookies to /app/Http/Middleware/EncryptCookies.php
is definitely helpful for anyone who may encounter a similar issue in the future.
We appreciate your feedback and will take it into consideration for future updates. We always strive to provide the best possible experience for our users, and feedback like yours helps us to achieve that goal.
Thank you again for taking the time to share your solution, and please don't hesitate to reach out to us if you have any further questions or concerns.
Best regards