From c1f9ea7b3a70c5efde67c83d03dc00745bb13068 Mon Sep 17 00:00:00 2001 From: Drew Harwell Date: Wed, 22 Jan 2020 17:50:49 -0500 Subject: [PATCH] fix issue with empty anchors --- lib/template.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/template.ejs b/lib/template.ejs index 5c17d45..4cd979d 100644 --- a/lib/template.ejs +++ b/lib/template.ejs @@ -120,7 +120,7 @@ }else{ var finalLink = pageLinks[pageLinks.length-1].href; // make sure we don't load the same page twice - if (!finalLink || finalLink == lastPageLoaded){ + if (!finalLink || finalLink == window.location.href || finalLink == lastPageLoaded){ console.log('this was the last page'); return false; }else{