Keep the variants prefix on payload requests the proxy rewrote
For a payload request, the proxy adapter appends the client's `_rsc` parameter to the rewritten destination when the proxy's target does not carry it. That block read the destination captured before the variants code ran, so where the proxy had matched a static combination and prefixed the destination, the block wrote the unprefixed destination back. The request then reached the route without its combination, and a variant read failed for a value that had been resolved. The block now reads the rewrite header again after the prefix went on. The test navigates through a link to a route the proxy rewrites, with a target that drops the query, to a page that declares combinations. The prefetch has to carry the baked value, and the navigation is then served from the prefetch without a request.
Showing
Please
register
or
sign in
to comment