Open link in new tab doesn't work

  • 1
  • Problem
  • Updated 2 years ago
We have a page with tables, these have records with fields that contain references to SF objects, these display as links. If I click on the links, the correct SF object opens in the same tab. If, however, I chose to open the link in new tab from right click menu, all I get is the page with the tables again not the SF object. 

This means I can't keep a skuid page open with all the filters etc applied and at the same time look at objects referenced in the tables. 

Help!
Photo of Ben Murray

Ben Murray

  • 1,084 Points 1k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
Instead of using the reference field in the table, use the name field. This will not be clickable so it will stop users from accidentally opening the record in the same frame. Then add a row action to open the record in a new tab or as a pop up.
Photo of Ben Murray

Ben Murray

  • 1,084 Points 1k badge 2x thumb
Raymond,

thanks for the reply but we have multiple objects referenced in the row - project, owner, milestone etc. Is this a bug?

Ben
Photo of Jannik Gysi

Jannik Gysi

  • 594 Points 500 badge 2x thumb
Ben

In order to reproduce your problem, I have to know which browser- and Skuid version you are working on...
Photo of Ben Murray

Ben Murray

  • 1,084 Points 1k badge 2x thumb
Yes we are. 
Photo of Jannik Gysi

Jannik Gysi

  • 594 Points 500 badge 2x thumb
Are you able to upgrade to the latest Skuid release (8.15.14)? It looks like that's a bug, that should be fixed in there. 

* [SKUID-2477] - Wrong URL structure for record links when using a Skuid page in Lightning Component
Photo of Ben Murray

Ben Murray

  • 1,084 Points 1k badge 2x thumb
Jannick,

I have upgrade but this still doesn't work. Now the same Skuid page opens but without the SF header

Ben
Photo of Jannik Gysi

Jannik Gysi

  • 594 Points 500 badge 2x thumb
Ben

We'll have to further investigate this issue. As a workaround in the meantime, you could - as Raymond already suggested - create your own links in a template field.

That would look like: <a href="/{{{Id}}}" target="_blank">{{{Name}}}</a> 

target="_blank" should open the record in a new tab.

Check if that works and let me know.
Photo of Ben Murray

Ben Murray

  • 1,084 Points 1k badge 2x thumb
That works and is awesome (label from one field, link from another...).

Thanks to Jannick and Raymond. 
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
Another alternative to using the reference field in your table is to use template fields and create your own hyperlinks by merging in the name fields. Then you can make your hyperlinks open in a new tab. Not as hard as it may sound.