Fix build for windows machines

This commit is contained in:
Philip Feldmann
2017-04-03 14:21:57 +01:00
committed by Philip Feldmann
parent cba33dfbee
commit 6ac07d03bf
3 changed files with 6 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ import actions, { NAVIGATE } from './actions';
// Remove .html and map / to index
const getPageNameFromPath = (path) => {
if (path === '/') {
if (path === path.sep) {
return 'index';
}
return path.substring(1, path.length - 5);