Skip to content

Update docs to expose redirectedFrom on $route object #2043

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

Merged
merged 4 commits into from
Feb 27, 2018

Conversation

therealpecus
Copy link
Contributor

This PR describes the vm.$route.redirectedFrom property that is made available if the current route is the result of a redirect.
It also updates the docs to clarify that props and meta fields are ignored for redirect route definitions.

@therealpecus
Copy link
Contributor Author

A note on CI checks: no code being tested has been changed (this is a fork from develop), but I cannot relaunch the tests. Locally, all tests run fine.

@posva
Copy link
Member

posva commented Feb 27, 2018

Hey, thanks for the PR and sorry for the delay.
I removed the note about ignoring props and meta field because I'm not sure what you're scenario you're talking about, do you mind sharing a fiddle showcasing what you mean so we can improve the docs?

@posva posva merged commit 768f6b7 into vuejs:dev Feb 27, 2018
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