feat: editor - existing content
This commit is contained in:
1 parent
20f2fd29fe
commit
30806d3c8d
11 files changed
+113
-20
No files matched your search
@@ -21,8 +21,11 @@ module.exports = {
|
||||
|
||||
// Extract Info
|
||||
let pathParts = _.filter(_.split(rawPath, '/'), p => !_.isEmpty(p))
|
||||
if (pathParts[0].length === 1) {
|
||||
pathParts.shift()
|
||||
}
|
||||
if (pathParts[0].length === 2) {
|
||||
pathObj = pathParts[0]
|
||||
pathObj.locale = pathParts[0]
|
||||
pathParts.shift()
|
||||
}
|
||||
pathObj.path = _.join(pathParts, '/')
|
||||
|
||||
Reference in new issue
Block a user