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; };