Jacky Zhao
2023-08-23 8b63ff882ae28b1a1774293673a7531463d6a5e5
quartz/components/scripts/spa.inline.ts
@@ -12,9 +12,6 @@
  try {
    const url = new URL(href)
    if (window.location.origin === url.origin) {
      if (url.pathname === window.location.pathname) {
        return !url.hash
      }
      return true
    }
  } catch (e) {}
@@ -82,7 +79,9 @@
  // delay setting the url until now
  // at this point everything is loaded so changing the url should resolve to the correct addresses
  history.pushState({}, "", url)
  if (!isBack) {
    history.pushState({}, "", url)
  }
  notifyNav(getFullSlug(window))
  delete announcer.dataset.persist
}