Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use replaceWith to transition from missing crate #167

Merged

Conversation

BlakeWilliams
Copy link
Contributor

When visiting a crate that doesn't exist the application uses
transitionTo to change the route to the index route. This allows the
user to navigate back to the same missing crate route which breaks the
browsers back button.

  • Replace transitionTo with replaceWith to avoid adding history
    entry.

#141

When visiting a crate that doesn't exist the application uses
`transitionTo` to change the route to the index route. This allows the
user to navigate back to the same missing crate route which breaks the
browsers back button.

* Replace `transitionTo` with `replaceWith` to avoid adding history
  entry.

rust-lang#141
@BlakeWilliams
Copy link
Contributor Author

It might also be worth investigating an actual "missing crate" route so typos can easily be fixed instead of having to be written from scratch like the issue says.

@alexcrichton
Copy link
Member

Thanks!

alexcrichton added a commit that referenced this pull request Jul 13, 2015
Use `replaceWith` to transition from missing crate
@alexcrichton alexcrichton merged commit daf46e0 into rust-lang:master Jul 13, 2015
@BlakeWilliams BlakeWilliams deleted the bmw-replace-with-404-fix branch July 13, 2015 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants