Change /notes2 to /
This commit is contained in:
parent
662053e750
commit
f3e16207a6
5 changed files with 10 additions and 16 deletions
|
|
@ -249,7 +249,7 @@ class N2Crumb extends CustomHTMLElement {
|
|||
this.label = label
|
||||
this.uuid = uuid
|
||||
|
||||
this.elLink.href = `/notes2#${this.uuid}`
|
||||
this.elLink.href = `/#${this.uuid}`
|
||||
this.elLink.innerText = this.label
|
||||
this.elLink.addEventListener('click', () => _mbus.dispatch("GO_TO_NODE", { nodeUUID: this.uuid, dontPush: false, dontExpand: true }))
|
||||
}// }}}
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ export class Notes2 extends Component {
|
|||
}
|
||||
|
||||
if (!dontPush)
|
||||
history.pushState({ nodeUUID }, '', `/notes2#${nodeUUID}`)
|
||||
history.pushState({ nodeUUID }, '', `/#${nodeUUID}`)
|
||||
|
||||
// New node is fetched in order to retrieve content and files.
|
||||
// Such data is unnecessary to transfer for tree/navigational purposes.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue