Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49237

ERROR URIError: URI malformed

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 49237

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>