Make direct link working

Hi,

I’d like to know if there are a way to make working the direct link from my react site.
For example i have some routes that works when you click from the site but not when you type the address directly.

I saw rewrite and redirect rules but it redirects all pages to the main.
It’s not the goal. I need to go directly on certain page

/traineeship
/catalog and some others

How can i achieve this?
thanks

Hi,

If your React app is using client-side routing (e.g. React Router, etc.) you’ll need to set up a rewrite as covered in the docs here: https://render.com/docs/deploy-create-react-app#using-client-side-routing

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.