Skip to main content
Chris Ritchie (Indy) 님이 B2C Commerce Developers에 질문했습니다

Hey Everyone.

 

I need to configure a number of search driven redirects on BM to pass through to to the PWA. We've been using the managed runtime redirect feature to achieve this up to this point but it is limited and scale and control. What's the best way of doing this? Should search driven redirects just come through in the search API response?

 

Thanks

 

#PWA Toolkit and Managed Runtime

답변 1개
  1. 2022년 11월 9일 오전 10:08

    With the added support of hooks in SCAPI, you can add it to the response to use:

     

    I have added this scenario to the HRA (Headless Reference Architecture) repo:

     

    https://github.com/taurgis/headless-reference-architecture/blob/main/cartridges/app_api_base/cartridge/scripts/hooks/search.js

     

    Since only hits support custom attributes, all results are "cleaned" and replaced with a single hit containing the redirect.

0/9000