Skip to content

Commit

Permalink
fix: homepage link
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Feb 11, 2018
1 parent 033be4f commit e097f88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/render/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export class Compiler {
!_self.matchNotCompileLink(href) &&
!config.ignore
) {
if (href === _self.config.homepage) href = '/'
if (href === _self.config.homepage) href = 'README'
href = router.toURL(href, null, router.getCurrentPath())
} else {
attrs += ` target="${linkTarget}"`
Expand Down
4 changes: 1 addition & 3 deletions src/core/router/history/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ export class History {
return this.config.basePath
}

getFile (path, isRelative) {
path = path || this.getCurrentPath()

getFile (path = this.getCurrentPath(), isRelative) {
const { config } = this
const base = this.getBasePath()
const ext = typeof config.ext !== 'string' ? '.md' : config.ext
Expand Down

0 comments on commit e097f88

Please sign in to comment.