Update _redirects for existing v2 runtime warning links #1832
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Problem
Some links from v2 runtime warnings currently are broken like:
https://vuejs.org/guide/computed.html (should be https://v2.vuejs.org/v2/guide/computed.html)
https://vuejs.org/guide/list.html#key (should be https://v2.vuejs.org/v2/guide/list.html#Maintaining-State)
Some of them are already redirected to the v3 doc site, which I think inappropriate:
I added 3 new redirects as comments for further discussion.
Proposed Solution
Additional Information
vuejs/vue#12653
Test links:
https://vuejs.org/guide/computed.html
https://v2.vuejs.org/v2/guide/computed.html
https://vuejs.org/guide/custom-directive.html
https://v2.vuejs.org/v2/guide/custom-directive.html
https://vuejs.org/guide/list.html#key
https://v2.vuejs.org/v2/guide/list.html#Maintaining-State
https://vuejs.org/guide/deployment.html
https://v2.vuejs.org/v2/guide/deployment.html
https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties
https://v2.vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties
https://vuejs.org/v2/api/#data
https://v2.vuejs.org/v2/api/#data
https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function
https://v2.vuejs.org/v2/guide/components.html#data-Must-Be-a-Function