Change /notes2 to /

This commit is contained in:
Magnus Åhall 2026-05-29 09:03:59 +02:00
parent 662053e750
commit f3e16207a6
5 changed files with 10 additions and 16 deletions

View file

@ -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 }))
}// }}}

View file

@ -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.

View file

@ -1,7 +1,6 @@
const CACHE_NAME = 'notes2-{{ .VERSION }}'
const CACHED_ASSETS = [
'/',
'/notes2',
'/offline',
'/css/{{ .VERSION }}/main.css',