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 ?

gefragt vor 2 Jahren1374 Aufrufe
1 Antwort
0
Akzeptierte Antwort

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

beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen