From: Bruno Alfred Date: Tue, 1 Feb 2022 14:53:45 +0000 (+0300) Subject: Update explanation on HTML mode (#1292) X-Git-Tag: v4.0.13~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a68633e65a1b4a60544c78c22cfc97654462e30;p=thirdparty%2Fvuejs%2Frouter.git Update explanation on HTML mode (#1292) Co-authored-by: Eduardo San Martin Morote --- diff --git a/docs/guide/essentials/history-mode.md b/docs/guide/essentials/history-mode.md index 17476473..9ec7af59 100644 --- a/docs/guide/essentials/history-mode.md +++ b/docs/guide/essentials/history-mode.md @@ -39,7 +39,7 @@ const router = createRouter({ }) ``` -When using history mode, the URL will look "normal," e.g. `https://example.com/user/id`. Beautiful! +When using `createWebHistory()`, the URL will look "normal," e.g. `https://example.com/user/id`. Beautiful! Here comes a problem, though: Since our app is a single page client side app, without a proper server configuration, the users will get a 404 error if they access `https://example.com/user/id` directly in their browser. Now that's ugly.