@uniweb/core 1.6.14 → 1.6.15

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/website.js +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/core",
3
- "version": "1.6.14",
3
+ "version": "1.6.15",
4
4
  "description": "Core classes for the Uniweb platform - Uniweb, Website, Page, Block",
5
5
  "type": "module",
6
6
  "exports": {
package/src/website.js CHANGED
@@ -994,7 +994,11 @@ export default class Website {
994
994
  }
995
995
  return null
996
996
  }
997
- return this.translateRoute(page.route)
997
+ // A static build's payload holds one concrete page per record, each a copy of the template
998
+ // with its id, and no template (`recordPageFor` above reads it the same way): the template's
999
+ // route is the one each record's link fills. ⛔ Until 2026-11-22 this returned the route of
1000
+ // whichever copy the id map held last, and every record linked to that one record's page.
1001
+ return this.translateRoute(page.dynamicContext?.templateRoute ?? page.route)
998
1002
  }
999
1003
 
1000
1004
  /**