By using AWS re:Post, you agree to the Terms of Use

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


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 ?

1 Answers

We followed the fix mentioned in this link -

We added the regex and made it allow in amplify redirects

answered a month 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