ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
https://capacitorjs.com
MIT License
11.24k stars 955 forks source link

fix(android): avoid crash if server url ends in / #7426

Closed jcesarmobile closed 1 week ago

jcesarmobile commented 3 weeks ago

If the server url ends in / the app crash because the path replacement messes with the other / in the url. Instead replace the last character from the url.

Closes https://github.com/ionic-team/capacitor/issues/7423