@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.
- package/package.json +1 -1
- package/src/website.js +5 -1
package/package.json
CHANGED
package/src/website.js
CHANGED
|
@@ -994,7 +994,11 @@ export default class Website {
|
|
|
994
994
|
}
|
|
995
995
|
return null
|
|
996
996
|
}
|
|
997
|
-
|
|
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
|
/**
|