When I use force:navigateToURL, it opens the URL in a new tab. Is there anyway to force this to open in a new browser window instead?

Thanks in advance, code pictured below

 var urlEvent = $A.get("e.force:navigateToURL");
            "url": "https://xxxxxx.pss.koresoftware.com/sfdc/ticketing/Activity/PhoneCallSave.aspx"

No. Browsers are free to choose if a new tab or window is opened, and can be configured by the user.


You can, however, force a window by using window.open with the third parameter ("features"), but it will not be a "normal" window. See this answer for more information.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.