diff --git a/site/index.js b/site/index.js index a5d2459..61694cc 100644 --- a/site/index.js +++ b/site/index.js @@ -167,7 +167,7 @@ function handleLoad() { function modifyLinks() { for (var ls = document.links, numLinks = ls.length, i=0; i<numLinks; i++){ - if(ls[i].href.indexOf(location.protocol+'//'+location.host) !== -1) { + if(ls[i].href.indexOf(location.protocol+'//'+location.host) !== -1 && ls[i].href.match(new RegExp(/\/\w+\.\w+$/)) === null) { //should be a regular link ls[i].setAttribute('onclick', 'return internalLink(\"'+ls[i].href.substring((location.protocol+'//'+location.host).length)+'\")'); }