Skip to content

Commit 3713f1b

Browse files
Blakelist7posva
andauthored
docs: catchall path updated for 404 (#3544)
* docs: catchhall path updated for 404 close(#3476) * Update docs/guide/essentials/history-mode.md Co-authored-by: Eduardo San Martin Morote <[email protected]>
1 parent 4f3d5e7 commit 3713f1b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/guide/essentials/history-mode.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,11 @@ There is a caveat to this: Your server will no longer report 404 errors as all n
132132
const router = new VueRouter({
133133
mode: 'history',
134134
routes: [
135-
{ path: '*', component: NotFoundComponent }
135+
{
136+
path: '/:catchAll(.*)',
137+
component: NotFoundComponent,
138+
name: 'NotFound'
139+
}
136140
]
137141
})
138142
```

0 commit comments

Comments
 (0)