-
Notifications
You must be signed in to change notification settings - Fork 403
Description
After upgrading to Spartacus 2211.41.0 and Angular 19, the launchSearchPage() method used by the SearchBoxComponentService no longer behaves as expected.
On the first search attempt, nothing happens — no navigation occurs and no results are displayed.
From the second search onward, the search page is shown, but it displays results for the previous query, not the one just entered.
Steps to Reproduce
- Upgrade Spartacus to
2211.41.0and Angular to19.x. - Use a search bar based on
SearchBoxComponentService. - Type a query (e.g., "shoes") and submit the search.
- Nothing happens — no navigation or result update.
- Type a second query (e.g., "pants").
- The search page opens, but shows results for the first query ("shoes").
Expected Behaviour
Each call to launchSearchPage() should immediately trigger a search and navigate to the results page with the correct query.
Actual Behaviour
The first call to launchSearchPage() has no effect. Subsequent calls navigate to the search page but display results from the previous query.
Environment
- Spartacus:
2211.41.0 - Angular:
19.x
Previously working version: 2211.32.1
Involved component: SearchBoxComponentService