Currently I started a project in react, using react router dom v6 I try to add special characters such as '?' in the url, but I guess there is a mistake I'm doing, because it redirects to an empty page.
So my question is, can I create any page using an url with special characters (e.g. /cars?search)? If that's the case, how can I do that?
And another question is if I can use that type of urls, can I add params to it (e.g. /cars?search=toyota)? How can I do it?
Thanks in advance
CodePudding user response:
Please don't use non-alphanumeric characters in the URL. Some characters like ?, = &, /, have special meanings in URLs. ? used for query