mirror of
https://github.com/gohugoio/hugo.git
synced 2025-02-08 16:31:31 +00:00
This fixes #3824: when the current pathname is the same as the one to be loaded, just call location.reload() so that the current scroll position can be preserved, instead of assigning to location.href, which will cause the scroll position to be lost. |
||
---|---|---|
.. | ||
connection.go | ||
hub.go | ||
livereload.go |