Skip to content

Commit

Permalink
Hotreload to cute path (no index.html) when the active page changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tipiirai committed Jan 15, 2024
1 parent b7adbbd commit 0bfe170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuekit/src/browser/hotreload.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ sse.onmessage = function(e) {

// content
if (html) {
if (data.is_md && location.pathname != url) location.href = url
if (data.is_md && location.pathname != url) location.href = url.replace('/index.html', '/')
else patch(html)
}

Expand Down

0 comments on commit 0bfe170

Please sign in to comment.