Why location.url(link) open two windows inside each other

Alon Grod
Tera Expert

Im trying to redirect a user to desired url using location.url(link) using Widget's client controller.
The problem is that the user is being redirect and he sees two windows inside each other (two SOW). What am I doing wrong?

WhatsApp Image 2023-11-27 at 15.06.04.jpeg

What the user sees:

WhatsApp Image 2023-11-27 at 15.13.14.jpeg



4 REPLIES 4

Samaksh Wani
Giga Sage
Giga Sage

Hello @Alon Grod 

 

Instead of $location.url(), use

 

g_navigation.open(link);

 

Plz mark my solution as Accept, If you find it helpful.

 

Regards,

Samaksh

 

@Samaksh Wani can I use it inside client controller?

@Samaksh Wani is there any way of using location.search?