Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Refreshing the browser causes the route to fail #1

Closed
297854895 opened this issue Aug 25, 2018 · 4 comments
Closed

Refreshing the browser causes the route to fail #1

297854895 opened this issue Aug 25, 2018 · 4 comments

Comments

@297854895
Copy link

297854895 commented Aug 25, 2018

such as

  1. localhost:8080/#/
  2. turn to localhost:8080/#/otherpath
  3. refresh browser
  4. the browser show localhost:8080/#/ but url is localhost:8080/#/otherpath
@will-stone
Copy link
Owner

I see this is your first issue logged with me. Please read the article I linked to in the issue template: https://css-tricks.com/open-source-etiquette-guidebook/#article-header-id-1

This project is provided for free; politeness is currency.

As for your issue, it works fine for me. You'll need to provide more information. Such as, a repo with your code, the browser and OS where you are experiencing the problem, anything else you think may be relevant. Also, there isn't much to the code if you'd like to try to debug it yourself; PRs are always welcome.

@will-stone
Copy link
Owner

Closing due to inactivity.

@josebalius
Copy link

@will-stone I can reproduce this, i followed the instructions in the README and it all works, but whenever you refresh the page, the url loses the current path, even though the router will render the right route. It almost like a history.replace is happening somewhere.

@will-stone
Copy link
Owner

Hi Jose. Can you please provide a bare-bones repo that demonstrates the issue? Along with which browser this affects (if browser specific).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants