Skip to content

abstract mode's router.back() fails if there are 2 consecutive same routes in history stack #2607

Closed
@rocka

Description

@rocka

Version

3.0.2

Reproduction link

https://jsfiddle.net/Rocka/bhu5vkn8/3/

Steps to reproduce

  1. Click 10. artist
  2. Hit button togglePlayer
  3. Click 10. artist
  4. Hit button back 2 times

What is expected?

route back to /search

What is actually happening?

nothing happend, route and route-view do not change


'cause I didn't figure out how to determine wether the route is going forward or backword, I decided to use abstract mode and traverse the router stack to find out which direction the route is going, then hit into this bug. The demo works fine if change router's mode to hash or history.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions