perform action when navigation item is clicked

When the dashboard link is clicked on the sidebar, I want to clear a value from the session. How can I tap into that?
2 Replies
Dennis Koch
Dennis Koch10mo ago
Not exactly what you want, but probably close enough: Extend the Dashboard page, register your own class and overwrite the mount() method. Then you can clear the session when that page is loaded.
Jon Mason
Jon Mason10mo ago
ok, i'll try that, thx!