It's working in Staged Product Catalog version. Redirect to product details page from cx-preview. The location in cx-preview is correct, which is like /category1/category2/name/p/A1234
But in Online product catalog version, the redirect location in cx-preview is
//name/p/A1234
Looks didn't get the category in url path. Where is the code for /cx-preview?