astroidjs 0.8.1 → 0.8.2
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/dist/worker/generate.js +5 -2
- package/package.json +1 -1
package/dist/worker/generate.js
CHANGED
|
@@ -606,11 +606,14 @@ export function generateAstroidMiddleware(config) {
|
|
|
606
606
|
" // map, checked before the tenant — an app exists whether or not any",
|
|
607
607
|
" // tenant does, and needs no lookup.",
|
|
608
608
|
" const app = appPrefix(context.url.hostname, TENANCY);",
|
|
609
|
-
"
|
|
609
|
+
" // `search` is preserved: the rewrite chooses which page renders, not",
|
|
610
|
+
" // what was asked of it. Dropping it silently loses filters, pagination,",
|
|
611
|
+
" // campaign tags — and every typed search param a routed island reads.",
|
|
612
|
+
" if (app) return `${app}${context.url.pathname}${context.url.search}`;",
|
|
610
613
|
]
|
|
611
614
|
: []),
|
|
612
615
|
" const tenant = context.locals.tenant;",
|
|
613
|
-
` return tenant ? \`${rewritePrefix}/\${tenant.slug}\${context.url.pathname}\` : undefined;`,
|
|
616
|
+
` return tenant ? \`${rewritePrefix}/\${tenant.slug}\${context.url.pathname}\${context.url.search}\` : undefined;`,
|
|
614
617
|
" },",
|
|
615
618
|
]
|
|
616
619
|
: []),
|
package/package.json
CHANGED