Go back to history

if ($$('.errocode').html() == 07) {
                app.dialog.alert('Wrong ways.', 'TPBANK');
                app.router.navigate('/itn-airways/search',history);
            };

I use this to get back previous tab, but console told me that ReferenceError: reloadPrevious is not defined
Can anyone help me in this case?
Thanks!

app.router.navigate('/itn-airways/search',history);

What is history? Check the API http://framework7.io/docs/view.html#router-api-methods-properties

And there is no app.router it must be called on View!