Skip to content

Commit

Permalink
fix: highlight homepage link, fixed #304
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Feb 11, 2018
1 parent 85428ef commit f960c19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/render/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ export class Compiler {
!_self.matchNotCompileLink(href) &&
!config.ignore
) {
if (href === _self.config.homepage) href = '/'
href = router.toURL(href, null, router.getCurrentPath())
} else {
attrs += ` target="${linkTarget}"`
Expand Down

0 comments on commit f960c19

Please sign in to comment.