RE: Can't login in MS Edge browser because of URLSearchParams is undefined

Jan Tošovský, modified 5 Years ago. Liferay Master Posts: 576 Join Date: 7/22/10 Recent Posts
When entering credentials in login page (dedicated widget page with the login portlet) and Sign In button is clicked, in MS Edge browser there is error in the console (LR 7.2 GA1)

SCRIPT5009: 'URLSearchParams' is undefined
util.js (1164,5)
http://localhost:8080/o/frontend-js-web/liferay/util.js

The broken script stops redirecting to private area so it is quite critical. It is weird as URLSearchParams should be supported by Edge. Surprisingly, no similar problem has been found in MSIE.
Does it work for you?
thumbnail
Alfonso Crisci, modified 5 Years ago. Regular Member Posts: 136 Join Date: 4/2/14 Recent Posts
I had a past interaction with this problem and the error got solved by using the latest MS Edge version on latest Windows 10 / Build 1803+
Jan Tošovský, modified 5 Years ago. Liferay Master Posts: 576 Join Date: 7/22/10 Recent Posts
You are correct. Thanks to your answer I've found my system was not updating for several months! In actual version all works like a charm.
thumbnail
Chema Balsas, modified 5 Years ago. Regular Member Posts: 127 Join Date: 2/25/13 Recent Posts
Hey Jan,

We load a lot of polyfills in MSIE to add support for things like URLSearchParams.

In the supported version of MSEdge, that API was already supported so we didn't need to add the polyfill which should result in faster load times ;)

Hope that makes sense!