make router nav to correct directory
This commit is contained in:
parent
d0424a70f2
commit
25889669f2
@ -57,7 +57,7 @@ export class Transformer {
|
|||||||
static hrefTemplate = (permalink) => {
|
static hrefTemplate = (permalink) => {
|
||||||
// permalink = Transformer.normalizeFileName(permalink)
|
// permalink = Transformer.normalizeFileName(permalink)
|
||||||
permalink = permalink.replace("ç", "c").replace("ı", "i").replace("ş", "s")
|
permalink = permalink.replace("ç", "c").replace("ı", "i").replace("ş", "s")
|
||||||
return `/note/${permalink}`
|
return `/notes/${permalink}`
|
||||||
}
|
}
|
||||||
|
|
||||||
static getHtmlContent = (content) => {
|
static getHtmlContent = (content) => {
|
||||||
|
@ -234,7 +234,7 @@ class Util {
|
|||||||
const fileName = Transformer.parseFileNameFromPath(this.toFilePath(slug))
|
const fileName = Transformer.parseFileNameFromPath(this.toFilePath(slug))
|
||||||
return Transformer.normalizeFileName(fileName) === Transformer.normalizeFileName(thisObject.name)
|
return Transformer.normalizeFileName(fileName) === Transformer.normalizeFileName(thisObject.name)
|
||||||
}) || null
|
}) || null
|
||||||
routerPath = routerPath ? '/note/' + routerPath : null
|
routerPath = routerPath ? '/notes/' + routerPath : null
|
||||||
const newObject = {
|
const newObject = {
|
||||||
name: thisObject.name,
|
name: thisObject.name,
|
||||||
children: children,
|
children: children,
|
||||||
|
Loading…
Reference in New Issue
Block a user