score:0

you can render for both path same component:

<route exact path="/">
  <pages/>
</route>
<route path="/recette/:id">
  <pages/>
</route>

and use condition in component:

if(match.url.includes('recette') {
   <recipedetailpage />
} else {
   <homepage />
}

Related Query

More Query from same tag