Side Menu Template and Android back button

Hi,
i’m developing an app with side menu template.
My problem is that when i’m in one of the sections defined in the side menu and i click the Android hardware back button the app exit instead of go to the previous page visited (history back).

How can i implement this?

thanks

have the same problem, and try the solution but still have the same problem.
How can I fix this problem?

It is the “menu-close” attribute in the side menu clears the history. You could try to replace it with menu-toggle=“left”. That will still close the side bar but keep the history.