mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 18:17:31 +08:00
fix(vue): go back to correct view with memory history (#25732)
resolves #25705
This commit is contained in:
@ -120,7 +120,12 @@ export const createIonRouter = (opts: IonicVueRouterOptions, router: Router) =>
|
||||
* will go back in a linear fashion.
|
||||
*/
|
||||
prevInfo.pathname === routeInfo.pushedByRoute &&
|
||||
routeInfo.tab === '' && prevInfo.tab === ''
|
||||
|
||||
/**
|
||||
* Tab info can be undefined or '' (empty string)
|
||||
* both are false-y values, so we can just use !.
|
||||
*/
|
||||
!routeInfo.tab && !prevInfo.tab
|
||||
)
|
||||
) {
|
||||
router.back();
|
||||
|
Reference in New Issue
Block a user