Javascript – Using useLocation of React-Router-DOM to receive passed data in React results in manually inputted links not working
Initially, it works if the manually input link is wrong (Ex: "/characters/test"), but if it's the correct one, it still redirects to error 404. If the link is clicked from Character component, it works normally. Which means no matter what…