We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
docsifyjs
Learn more about funding links in repositories.
Report abuse
1 parent 033be4f commit e097f88Copy full SHA for e097f88
src/core/render/compiler.js
@@ -211,7 +211,7 @@ export class Compiler {
211
!_self.matchNotCompileLink(href) &&
212
!config.ignore
213
) {
214
- if (href === _self.config.homepage) href = '/'
+ if (href === _self.config.homepage) href = 'README'
215
href = router.toURL(href, null, router.getCurrentPath())
216
} else {
217
attrs += ` target="${linkTarget}"`
src/core/router/history/base.js
@@ -35,9 +35,7 @@ export class History {
35
return this.config.basePath
36
}
37
38
- getFile (path, isRelative) {
39
- path = path || this.getCurrentPath()
40
-
+ getFile (path = this.getCurrentPath(), isRelative) {
41
const { config } = this
42
const base = this.getBasePath()
43
const ext = typeof config.ext !== 'string' ? '.md' : config.ext
0 commit comments