In my case I had renamed the site (and therefor item paths) from Demo to Storefront. This seems to have affected some rendering parameters used as part of SXA partial layouts. In the case of the search bar issue, to resolve this, I did the following:
- Load up the experience editor for the home page.
- Select the Experience Accelerator ribbon item
- Click on Partial Designs and then Default Commerce Header
- Select the search bar, and then the action button to edit the style and behavior of this component (rendering parameters).
- Here the Search Page Link parameter could be edited. in my case this was a broken link which was causing the search results to redirect to localhost.
After fixing it up and republishing, the search results displayed as expected. It's worth running a broken link report to ensure you pick up any other broken links such as this.
No comments:
Post a Comment