mnfst 0.5.43 → 0.5.44

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.
@@ -359,6 +359,7 @@ async function handleRouteChange() {
359
359
  const newRoute = pathnameToLogical(pathname);
360
360
  if (newRoute === currentRoute) return;
361
361
 
362
+ const prevRoute = currentRoute;
362
363
  currentRoute = newRoute;
363
364
 
364
365
  // Handle scrolling based on whether this is an anchor link or route change
@@ -399,7 +400,7 @@ async function handleRouteChange() {
399
400
  // Emit route change event
400
401
  window.dispatchEvent(new CustomEvent('manifest:route-change', {
401
402
  detail: {
402
- from: currentRoute,
403
+ from: prevRoute,
403
404
  to: newRoute,
404
405
  normalizedPath: newRoute === '/' ? '/' : newRoute.replace(/^\/|\/$/g, '')
405
406
  }
@@ -471,9 +472,9 @@ function installMpaStickyLocaleLinks() {
471
472
 
472
473
  const path = url.pathname.replace(/\/$/, '') || '/';
473
474
  const adjusted = applyStickyLocaleToPathname(path);
474
- if (adjusted === path) return;
475
-
476
475
  event.preventDefault();
476
+ event.stopPropagation();
477
+ event.stopImmediatePropagation();
477
478
  url.pathname = adjusted;
478
479
 
479
480
  const dest = url.toString();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mnfst",
3
- "version": "0.5.43",
3
+ "version": "0.5.44",
4
4
  "private": false,
5
5
  "workspaces": [
6
6
  "templates/starter",