We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c21a858 + 24ba81e commit da10b1aCopy full SHA for da10b1a
1 file changed
outline/manager.js
@@ -1662,7 +1662,12 @@ module.exports = function (doc) {
1662
UI.utils.getEyeFocus(tr, false, undefined, window) // instantly: false
1663
}
1664
1665
- if (solo && dom && dom.defaultView && dom.defaultView.history) {
+ if (
1666
+ solo && dom && dom.defaultView && dom.defaultView.history
1667
+ // Don't add the new location to the history if we arrived here through a direct link
1668
+ // (i.e. when static/databrowser.html in node-solid-server called this method):
1669
+ && document.location.href !== subject.uri
1670
+ ) {
1671
let stateObj = pane ? { paneName: pane.name } : {}
1672
try { // can fail if different origin
1673
dom.defaultView.history.pushState(stateObj, subject.uri, subject.uri)
0 commit comments