The New Way to Build! Introducing ReUI — the developer platform for agentic UI with shadcn/ui
Learn More

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)

https://preview.keenthemes.com/metronic8/angular/demo2/dashboard

go to

crafted > errors > 404

press back button on browser

try to use menus.

Thanks for help.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (5)


Hi,

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.

Regards,
Keenthemes support



wow, thanks!



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 happy



Hi Carmelo,

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.

Thanks.



Hi Rob,

I'l try to navigate for the solution: try to check this article:
We have the helper to refresh menus: demo1/src/app/_metronic/kt/kt-helpers.ts you can use when user clicks 'back'.

Regards,
Keenthemes support


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(