@flamingo-stack/openframe-frontend-core 0.0.835 → 0.0.836

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.
@@ -47,9 +47,14 @@ function routePattern(route) {
47
47
  return { route, dynamic, regex: new RegExp(`^${source || '/'}$`) };
48
48
  }
49
49
 
50
+ /**
51
+ * The page's path as a route is written. `/index` is the home page: Next calls it that on the server (Vercel serves it
52
+ * as the `index` function, and a page regenerated there renders with `/index` as its path), and no app route is
53
+ * named `index` because Next answers `/index` itself.
54
+ */
50
55
  function normalize(pathname) {
51
56
  const path = `/${String(pathname || '').replace(/^\/+/, '')}`.replace(/\/+$/, '');
52
- return path === '' ? '/' : path;
57
+ return path === '' || path === '/index' ? '/' : path;
53
58
  }
54
59
 
55
60
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flamingo-stack/openframe-frontend-core",
3
- "version": "0.0.835",
3
+ "version": "0.0.836",
4
4
  "description": "Shared design system and components for all Flamingo platforms",
5
5
  "type": "module",
6
6
  "sideEffects": [