Hello people! I have a problem with my application URL. If I pass the URL’s through the react-router-dom it works, but if I type directly into the browser it redirects me to the home page.
Hi Thalles,
Could you try changing the destination to include a forward slash at the beginning. So /index.html
instead of index.html
I noticed that you have configured /*
-> /index.html
to be a Redirect Rule
. It should be a Rewrite Rule
in this case. You can change it by selecting the correct option from the drop down.
I have done /* → to /index.html and as Rewrite Rule. I still have the problem of being redirected to the home page which has the “/” url.
Hi Burak,
What does the address bar show after you’ve tried to access a deep link directly? If it remains as the deep link but your service is showing the homepage content then that is an application issue - the rewrite rule is working but your application isn’t handling it correctly,
Regards,
John B
Worked for me, thanks