From 0b92b3c58553f54f5ed1a9f3c288288fbaa17e0a Mon Sep 17 00:00:00 2001 From: Doug Wade Date: Mon, 22 Aug 2016 10:17:42 -0700 Subject: [PATCH] Fix 599: use path.join instead of string concatenation --- .../generator-react-server/generators/app/templates/routes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/generator-react-server/generators/app/templates/routes.js b/packages/generator-react-server/generators/app/templates/routes.js index e84c6ea0b..cbed99e55 100644 --- a/packages/generator-react-server/generators/app/templates/routes.js +++ b/packages/generator-react-server/generators/app/templates/routes.js @@ -1,10 +1,11 @@ +const path = require('path'); module.exports = { routes: { HelloWorld: { path: ['/'], method: 'get', - page: './pages/hello-world', + page: path.join('.', 'pages', 'hello-world'), }, }, };