@quintype/framework 7.33.6-fix-story-route.0 → 7.33.6-jw-player.1
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quintype/framework",
|
|
3
|
-
"version": "7.33.6-
|
|
3
|
+
"version": "7.33.6-jw-player.1",
|
|
4
4
|
"description": "Libraries to help build Quintype Node.js apps",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"engines": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@ampproject/toolbox-optimizer": "2.8.3",
|
|
34
34
|
"@grpc/grpc-js": "^1.12.5",
|
|
35
35
|
"@jsdoc/salty": "^0.2.9",
|
|
36
|
-
"@quintype/amp": "^2.20.
|
|
36
|
+
"@quintype/amp": "^2.20.1-jw-player.1",
|
|
37
37
|
"@quintype/backend": "^2.7.0",
|
|
38
38
|
"@quintype/components": "^3.5.0",
|
|
39
39
|
"@quintype/prerender-node": "^3.2.26",
|
|
@@ -51,9 +51,7 @@ function loadDataForIsomorphicRoute(
|
|
|
51
51
|
const redirectToLowercaseSlugsValue =
|
|
52
52
|
typeof redirectToLowercaseSlugs === "function" ? redirectToLowercaseSlugs(config) : redirectToLowercaseSlugs;
|
|
53
53
|
for (const match of matchAllRoutes(url.pathname, routes)) {
|
|
54
|
-
const
|
|
55
|
-
const params = Object.assign({}, url.query, otherParams, match.params, storyPath);
|
|
56
|
-
|
|
54
|
+
const params = Object.assign({}, url.query, otherParams, match.params);
|
|
57
55
|
/* On story pages, if the slug contains any capital letters (latin), we want to
|
|
58
56
|
* redirect the browser to the URL having all lowercase letters. We need to be
|
|
59
57
|
* wary of any asset routes that might make its way here and get wrongly redirected.
|