Hii everyone! I want to use react-router v6 but there is some problem and the flow is 1. if user click on the go to home page button then the home page should open 2. if user click on the go to contact page link then the search will change and i want to trigger the useEffect to check if search contains contact url then the contact page should open with the link to go back.