diff -r 5564f5065f81 -r 78990a8a069b cms/app-client/mirage/config.js --- a/cms/app-client/mirage/config.js Mon Oct 03 16:32:41 2016 +0200 +++ b/cms/app-client/mirage/config.js Tue Oct 04 11:58:39 2016 +0200 @@ -13,7 +13,7 @@ */ // this.urlPrefix = ''; // make this `http://localhost:8080`, for example, if your API is on a different server // this.namespace = ''; // make this `api`, for example, if your API is namespaced - this.namespace = ENV.backRootURL.replace(/\/$/,'')+'/api/v1'; + this.namespace = (ENV.APP.backRootURL || ENV.rootURL).replace(/\/$/,'')+'/api/v1'; // this.timing = 400; // delay for each request, automatically set to 0 during testing this.get('/documents', function({ documents }) { @@ -21,12 +21,12 @@ }); this.get('/documents/:id', ({documents}, request) => { - let id = decodeURIComponent(request.params.id); + let id = decodeURIComponent(decodeURIComponent(request.params.id)); return documents.find(id); }); this.get('/documents/:id/transcript', ({transcripts}, request) => { - let id = decodeURIComponent(request.params.id); + let id = decodeURIComponent(decodeURIComponent(request.params.id)); return transcripts.find(id).transcript; });