From: Eduardo San Martin Morote Date: Mon, 3 Aug 2020 07:45:24 +0000 (+0200) Subject: docs: add note about encoding X-Git-Tag: v4.0.0-beta.5~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1423c55af268fc6fea851a5481e54be0c04046be;p=thirdparty%2Fvuejs%2Frouter.git docs: add note about encoding --- diff --git a/README.md b/README.md index 3422404f..3d31c5b2 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,10 @@ ``` See more on the [KeepAlive](https://github.com/vuejs/vue-router-next/blob/master/e2e/keep-alive/index.ts) and the [Transition](https://github.com/vuejs/vue-router-next/blob/master/e2e/transitions/index.ts) examples. +- Encoding is now more consistent. The initial navigation should yield the same results are in-app navigations. + - Values in `path`, `fullPath` are not decoded anymore. They will appear as provided by the browser (most browsers provide them encoded). + - `params`, `query` and `hash` are now all decoded + - When using `push`, `resolve` and `replace` and providing a `string` location or a `path` property in an object, **it must be encoded**. `params`, `query` and `hash` must be provided in its decoded version. ### Typings