Go to URL action forces new window in Lightning

  • 1
  • Problem
  • Updated 7 months ago
  • Solved
  • (Edited)
Hello team!

The Go to URL action is forcing a new window in Lightning regardless of the target setting; current window and parent window have the same problem.

I do get to the right page however it's always a new window which is a less ideal user experience! :P

I'm on version 11.1.8 in my sandbox.

Thank you,

Dan
Photo of Dan Boudreau

Dan Boudreau

  • 820 Points 500 badge 2x thumb

Posted 7 months ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
What URL are you going to? Only relative URLs that point to Lightning Experience content are allowed to be opened within Lightning Experience --- if you're trying to open an external URL on another domain, that has to be opened in a new tab / window in your browser.
Photo of Dan Boudreau

Dan Boudreau

  • 820 Points 500 badge 2x thumb
Zach,

I take back my complaint. The issue was I was using the {{$Site.CurrentSiteUrl}}/{{{Id}}} -- a holdover from classic configurations.

I changed it simply to /{{{Id}}} and it works!

Thanks,

Dan