From 2ac3bfacdb85724b3f31b634d55d0d455dc811f1 Mon Sep 17 00:00:00 2001 From: jelhan Date: Thu, 31 Aug 2017 16:12:45 +0200 Subject: [PATCH] Fix: do not link assets with absolut paths to support serving from subdirectory Bug introduced by 632c36eb127641732e704f4d7127fe833ce72b9f --- config/environment.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/environment.js b/config/environment.js index 29f98b826..ef3c3ddbe 100644 --- a/config/environment.js +++ b/config/environment.js @@ -6,7 +6,7 @@ module.exports = function(environment) { modulePrefix: 'croodle', environment: environment, locationType: 'hash', - rootURL: '/', + rootURL: '', APP: { // Here you can pass flags/options to your application instance @@ -44,6 +44,8 @@ module.exports = function(environment) { }; if (environment === 'test') { + ENV.rootURL = '/'; + // Testem prefers this... ENV.locationType = 'hash';