From: Eduardo San Martin Morote Date: Thu, 23 Apr 2020 08:39:19 +0000 (+0200) Subject: docs: add note about relative redirect X-Git-Tag: v4.0.0-alpha.8~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3249f8cd773905787b2e412a2f17615f5a209d0d;p=thirdparty%2Fvuejs%2Frouter.git docs: add note about relative redirect --- diff --git a/README.md b/README.md index 428632bc..dea7f493 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,22 @@ Since the library is still unstable **and because we want feedback** on bugs and .flat() ``` - _resolving_(`router.resolve`) or _pushing_ (`router.push`) a location with missing params no longer warns and produces an invalid URL, but throws an Error instead +- Relative children path `redirect` are not supported. Use named routes instead: + ```js + // replace + let routes = { + path: '/parent/', + children: [{ path: '', redirect: 'home' }, { path: 'home' }], + } + // with + let routes = { + path: '/parent/', + children: [ + { path: '', redirect: { name: 'home' } }, + { path: 'home', name: 'home' }, + ], + } + ``` #### Improvements