framework7
framework7 copied to clipboard
fix(core): Improve router back with history condition
The router.back () does not take into account the history: false, keeping the old page in the DOM, adding the options.history condition in the navigate.js file in the keepOldPage variable should solve the problem.
Issue page: Link Actually code:
let keepOldPage =
(router.params.preloadPreviousPage || router.params[`${app.theme}SwipeBack`]) && !isMaster;
Fix code:
let keepOldPage =
(router.params.preloadPreviousPage || router.params[`${app.theme}SwipeBack`]) && !isMaster && options.history;