nuxt-cms-engine
Advanced tools
Comparing version 3.3.0 to 3.3.1
@@ -5,2 +5,9 @@ # Changelog | ||
### [3.3.1](https://github.com/exoort/nuxt-cms-engine/compare/v3.3.0...v3.3.1) (2022-07-07) | ||
### Bug Fixes | ||
* fixed 404 error render ([58a1c37](https://github.com/exoort/nuxt-cms-engine/commit/58a1c37f9ce93acd93251ca2a7d232c3c8951884)) | ||
### [3.2.1](https://github.com/exoort/nuxt-cms-engine/compare/v3.2.0...v3.2.1) (2022-06-30) | ||
@@ -7,0 +14,0 @@ |
@@ -23,14 +23,16 @@ function checkIsObject (value) { | ||
for (const pageUrl in pages) { | ||
const detectBy = pages[pageUrl].detectBy | ||
const pageUrlSplitted = pageUrl.split('/') | ||
let matchedCount = 0 | ||
if (pageUrl !== '/') { | ||
const detectBy = pages[pageUrl].detectBy | ||
const pageUrlSplitted = pageUrl.split('/') | ||
let matchedCount = 0 | ||
splittedUrl.forEach((part) => { | ||
if (detectBy.includes(part)) { | ||
matchedCount += 1 | ||
splittedUrl.forEach((part) => { | ||
if (detectBy.includes(part)) { | ||
matchedCount += 1 | ||
} | ||
}) | ||
if (matchedCount === detectBy.length && splittedUrl.length === pageUrlSplitted.length) { | ||
searched = pages[pageUrl] | ||
} | ||
}) | ||
if (matchedCount === detectBy.length && splittedUrl.length === pageUrlSplitted.length) { | ||
searched = pages[pageUrl] | ||
} | ||
@@ -37,0 +39,0 @@ } |
{ | ||
"name": "nuxt-cms-engine", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "CMS engine for nuxt framework", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
29051
475