8 Commits

Author SHA1 Message Date
e32fbe0210 fix(vue): incorrect view rendered when using router.go(-n) (#29877)
resolves #28201

This PR fixes the navigation issue related to `router.go` that was
identified in issue #28201. After working on this issue I realised that
@xxllxhdj has already created a PR for this in #29847. While their fix
is great, I have added tests to replicate the issue, reused existing
code and `undefined` will be returned in unexpected situations - which
matches the existing functionality.

## What is the current behavior?

If a user navigates from `/home` -> `/pageA` -> `/pageB` -> `/pageC` ->
back to `/pageB` -> then `router.go(-2)` is called the URL will be
updated to `/home` correctly, but the app will try to render `/pageA`.

This happens for any delta < -1.

## What is the new behavior?

The app will correctly render `/pageA`, which matches the URL.

## Does this introduce a breaking change?

- [ ] Yes
- [X] No

---------

Co-authored-by: xxllxhdj <12881488+xxllxhdj@users.noreply.github.com>
2024-10-22 20:31:23 +00:00
721a461073 fix(vue): replacing routes now updates location state correctly (#24721)
resolves #24432

Co-authored-by: tigohenryschultz <tigohenryschultz@users.noreply.github.com>
Co-authored-by: yoyo930021 <yoyo930021@users.noreply.github.com>
2022-02-07 15:37:43 -05:00
7c43589b0a fix(vue): canGoBack method now works correctly (#24188)
resolves #24109
2021-11-09 09:45:12 -05:00
24659a527a fix(vue): mount correct views when navigating (#24056)
resolves #23914
2021-10-14 11:28:36 -04:00
621f4faa1a fix(vue): using router.go now shows correct view (#23773)
resolves #22563
2021-08-17 08:53:55 -04:00
b3847ff723 chore(): remove old test app, bump dependencies (#23481) 2021-06-22 08:43:57 -04:00
b06ae16591 fix(vue): improve path matching when going back (#22275)
resolves #22258
2020-10-13 16:04:55 -04:00
3ea92f5527 test(vue): add tests (#22089) 2020-09-15 09:54:35 -04:00