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) => {
|
||||
// permalink = Transformer.normalizeFileName(permalink)
|
||||
permalink = permalink.replace("ç", "c").replace("ı", "i").replace("ş", "s")
|
||||
return `/note/${permalink}`
|
||||
return `/notes/${permalink}`
|
||||
}
|
||||
|
||||
static getHtmlContent = (content) => {
|
||||
|
@ -234,7 +234,7 @@ class Util {
|
||||
const fileName = Transformer.parseFileNameFromPath(this.toFilePath(slug))
|
||||
return Transformer.normalizeFileName(fileName) === Transformer.normalizeFileName(thisObject.name)
|
||||
}) || null
|
||||
routerPath = routerPath ? '/note/' + routerPath : null
|
||||
routerPath = routerPath ? '/notes/' + routerPath : null
|
||||
const newObject = {
|
||||
name: thisObject.name,
|
||||
children: children,
|
||||
|
Loading…
Reference in New Issue
Block a user