Skip to content

Routing -> history::previous doesn't work? #296

Closed
@hwchen

Description

@hwchen

I'm not sure if I'm doing the routing correctly but I'm having trouble getting the previous button in the browser to work properly.

Here's the example

In order:

  • When I load the index page, I see "one" and a button to go to page two.
  • When I click the button, I go to page two and see "two"
  • When I click previous page in the browser, the url changes to the root path, but the page still renders "two" (Here I expect it to render page one)
  • When I then press enter in the address bar (where the root path is displayed) I get page one.

I tried following the example from the guide. It basically made sense, but I'm not able to get the behavior I expect. I may have just messed up something.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions