$variantResponse =
$this->findVariantRoute->
load( $productId,
new Request( [ 'switchedGroup' =>
$switchedGroup,
'options' =>
$options ??
[],
] ),
$salesChannelContext );
$productId =
$variantResponse->
getFoundCombination()->
getVariantId();
} catch (VariantNotFoundException|ProductNotFoundException
) { // nth
} $host =
$request->attributes->
get(RequestTransformer::SALES_CHANNEL_ABSOLUTE_BASE_URL
) .
$request->attributes->
get(RequestTransformer::SALES_CHANNEL_BASE_URL
);
$url =
$this->seoUrlPlaceholderHandler->
replace( $this->seoUrlPlaceholderHandler->
generate( 'frontend.detail.page',
['productId' =>
$productId] ),