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 ?

asked 2 years ago1338 views
1 Answer
0
Accepted Answer

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

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions