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 ?

feita há 2 anos1372 visualizações
1 Resposta
0
Resposta aceita

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 há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas