@nakedcreativity/cee-ms-node 0.3.13 → 0.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +6 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -174,6 +174,9 @@ function ceems(config) {
|
|
|
174
174
|
|
|
175
175
|
var breadcrumbArray = []
|
|
176
176
|
var path = ''
|
|
177
|
+
if(!scope.scopes[0].path){
|
|
178
|
+
return
|
|
179
|
+
}
|
|
177
180
|
scope.scopes[0].path.forEach(handle => {
|
|
178
181
|
path += handle
|
|
179
182
|
if(site.pages[path]){
|
|
@@ -251,11 +254,13 @@ function ceems(config) {
|
|
|
251
254
|
|
|
252
255
|
//console.log(req.body.page)
|
|
253
256
|
req.query.edit = true;
|
|
254
|
-
|
|
257
|
+
this.site = req.body.site
|
|
258
|
+
site = this.site
|
|
255
259
|
// if this was sent by the iframe, handle it differently
|
|
256
260
|
if(req.query.iframe != null){
|
|
257
261
|
this.render(req, res, JSON.parse(decodeURIComponent(req.body.page)));
|
|
258
262
|
}else {
|
|
263
|
+
|
|
259
264
|
this.render(req, res, req.body.page);
|
|
260
265
|
}
|
|
261
266
|
|