Problem with Menus when going back from error page (using back button)
Hi, I have a problem with all demos using angular. If you go to an error page and go back using browser history (back button). It happens:
- dropdown menus are not working anymore (e.g search, user info, etc)
crafted > errors > 404
press back button on browser
try to use menus.
Thanks for help.
I'l try to navigate for the solution: try to check this article: https://www.bennadel.com/blog/3533-using-router-events-to-detect-back-and-forward-browser-navigation-in-angular-7-0-4.htm
We have the helper to refresh menus:
demo1/src/app/_metronic/kt/kt-helpers.ts you can use when user clicks 'back'.
I don't if I can post here some piece of code but I solved (I was so close the solution!). If you need fixes let me know.
Anyway please spend some words on the docs about how the kt menu works because it is very beautiful but also quite complex to understand
Under the hood for the KTMenu component we use core component from the Metronic HTML KTMenu: https://preview.keenthemes.com/metronic8/demo1/documentation/general/menu/api.html.
We are going to rewrite it from scratch, in the Angular manner (not just a wrapper), and once we finish it we will publish the new doc.