F7router unable to record previous page path in framework7 vue PWA

Currently, im developing framework7 vue PWA. I want to access to any previous page at certain page. Therefore, I have put beforeEnter function at the route.js. Just like this https://framework7.io/docs/routes.html#route-before-enter-leave. I have put console.log(routeFrom) inside this beforeEnter function to access previous route before enter that page. The question is that if I navigate to the page by typing url in browser address bar, the previous route would not be recorded by f7router. But if I put a hyperlink button that allow to navigate to the certain page by clicking the button., when I use it to navigate to certain page , the previous route is recorded and display in the log. May I ask why is that so