slash is getting appended at the end of the url path in amplify hosted webapp

0

We deployed a react webapp in amplify hosting, whenever we type the url + path. The path is appended with slash at the end always and it is getting redirect and error page is shown. We added the route with path appended with slash also in react router then also it is not working in amplify. It would be super helpful if someone help with this issue ?

preguntada hace 2 años1374 visualizaciones
1 Respuesta
0
Respuesta aceptada

We followed the fix mentioned in this link - https://codehunter.cc/a/reactjs/prevent-aws-amplify-from-adding-trailing-slash-and-forcing-redirect.

We added the regex and made it allow in amplify redirects

respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas