diff options
Diffstat (limited to 'livereload/livereload.go')
-rw-r--r-- | livereload/livereload.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/livereload/livereload.go b/livereload/livereload.go index a5da891fc..74702175f 100644 --- a/livereload/livereload.go +++ b/livereload/livereload.go @@ -122,7 +122,12 @@ HugoReload.prototype.reload = function(path, options) { } path = path.substring(prefix.length); - window.location.href = path; + + if (window.location.pathname === path) { + window.location.reload(); + } else { + window.location.href = path; + } return true; }; |