From 673d7c2867bc475a0af68468cb17dd5f54075f5d Mon Sep 17 00:00:00 2001 From: Gaurav Munjal Date: Mon, 8 Feb 2016 10:01:47 -0500 Subject: [PATCH] Fix broken routing in Firefox --- ember-cli-build.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ember-cli-build.js b/ember-cli-build.js index a6a22f79..f60454ec 100644 --- a/ember-cli-build.js +++ b/ember-cli-build.js @@ -114,6 +114,9 @@ function getEmberCLIBlueprints() { fileMap[blueprintName] = fs.readFileSync(filePath).toString(); } + // Location should be 'none' in router.js + fileMap['router'] = fileMap['router'].replace(/config\.locationType/, "'none'"); + fileMap['resolver'] = fs.readFileSync('app/resolver.js').toString(); fileMap['twiddle.json'] = fs.readFileSync('blueprints/twiddle.json').toString(); fileMap['initializers/router'] = fs.readFileSync('blueprints/router_initializer.js').toString();