When user selects a category from the home page, should bring the to all products page, but only displays the products of selected category. The backend already can handle this. Change the url to have "type={category}" in the query params, backend should handle the rest.
How to do, get the query param from the browser url and than pass it to the api url.
When user selects a category from the home page, should bring the to all products page, but only displays the products of selected category. The backend already can handle this. Change the url to have "type={category}" in the query params, backend should handle the rest.
How to do, get the query param from the browser url and than pass it to the api url.