Forum Discussion

Tomie's avatar
Tomie
Copper Contributor
Jun 16, 2025

Open internal links in a new tab

I have a list with an item linked to internal document set to open in a new tab.

When I add a webpart on the home page and add this list, the above link opens in the same tab. Why is the link not behaving in the same way as when I open the list itself? How do I make the link on the home page open in a new tab?

1 Reply

  • michalkornet's avatar
    michalkornet
    Iron Contributor

    Hi Tomie​ I'm not sure why the behavior is different, but there is a way to force it using column formatting (in cases where you're using the List web part on a page). You can update your column with something like this:-> 

    { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "a", "attributes": { "href": "@currentField", "target": "_blank" }, "txtContent": "@currentField" }

     

Resources