@luigi-project/core-modular 0.0.12-dev.20260850047 → 0.0.12-dev.20260860043

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/luigi.js CHANGED
@@ -8380,12 +8380,14 @@ var fi = {
8380
8380
  return;
8381
8381
  }
8382
8382
  let n = this.luigi.getConfigValue("routing.disableBrowserHistory") ? "replaceState" : y;
8383
- if (p) if (!l && n !== "replaceState") location.hash = v;
8384
- else {
8385
- let t = new CustomEvent("hashchange", e);
8386
- window.history[n]({ path: "/#" + v }, "", "/#" + v), window.dispatchEvent(t);
8387
- }
8388
- else {
8383
+ if (p) {
8384
+ let t = a.addLeadingSlash(v);
8385
+ if (!l && n !== "replaceState") location.hash = t;
8386
+ else {
8387
+ let r = new CustomEvent("hashchange", e);
8388
+ window.history[n]({ path: "/#" + t }, "", "/#" + t), window.dispatchEvent(r);
8389
+ }
8390
+ } else {
8389
8391
  let t = new CustomEvent("popstate", e);
8390
8392
  window.history[n]({ path: v }, "", v), window.dispatchEvent(t);
8391
8393
  }