Can't touch #this
This commit is contained in:
parent
05d90e6068
commit
3f499824f8
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,10 @@ module.exports = {
|
|||
if (anchors[i].getAttribute('href')) {
|
||||
var anchor = anchors[i]
|
||||
var href = anchor.getAttribute('href').trim()
|
||||
|
||||
// Do not touch hrefs which start with a pound sign
|
||||
if (href[0] == '#') continue
|
||||
|
||||
var absoluteURL = functions.resolve(absBasePath, href)
|
||||
|
||||
anchor.setAttribute('href', absoluteURL)
|
||||
|
|
Loading…
Reference in a new issue