framework7 icon indicating copy to clipboard operation
framework7 copied to clipboard

fix(core): Improve router back with history condition

Open Simone4e opened this issue 3 years ago • 0 comments

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;

Simone4e avatar Sep 21 '22 07:09 Simone4e