I use Framework7 and use the injected code via JavaScript. I need when the user clicks a certain button on the "Injected Page" return to the main.
The history.go(-1)
and the window.history.back();
do not work because the pages are not in the history.