@ricsouzamoura wrote:
Hello,
I am using ionic version 5.4.1 with angular. I have created a basic ionic blank project and try call the application using the follwing URL:http://localhost:8100/home?errorMessage=Login+ou+senha+do+usu�rio+�+inv�lido
The error message was encoded as you can see, however it is important to realize that it wasn’t encoded using window.encodeURIComponent.
Ionic tries to decode the URL using window.decodeURIComponent, as I could figure out in the following code:
It is an error that happens before calling my component. I created a angular project without Ionic and it works fine.
Could it be a bug ?
Ps: Unfortunately I can’t change the encode method. It is the an error message comming from an api.
Thanks for any help
Regards
Ricardo Moura
Posts: 1
Participants: 1