diff --git a/src/Vue/doc/index.rst b/src/Vue/doc/index.rst index 5319ee1f785..acf87e28dab 100644 --- a/src/Vue/doc/index.rst +++ b/src/Vue/doc/index.rst @@ -141,7 +141,7 @@ Web History mode with Vue Router To use "web" history mode with Vue Router, a catch-all route will be needed which should render the same template and Vue component:: - #Route('/survey/{path<.+>}') + #[Route('/survey/{path<.+>}')] public function survey($path = ''): Response { // render the template