From 1a68633e65a1b4a60544c78c22cfc97654462e30 Mon Sep 17 00:00:00 2001 From: Bruno Alfred Date: Tue, 1 Feb 2022 17:53:45 +0300 Subject: [PATCH] Update explanation on HTML mode (#1292) Co-authored-by: Eduardo San Martin Morote --- docs/guide/essentials/history-mode.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.47.2