Forum Discussion
inkaotto
Dec 10, 2021Copper Contributor
Quicklinks - open in a new tab
Hi, i need some support. I added some Quicklinks on our Sharpoint-Site and some of them open in a new tab and some in the same. But we want to open all in a new tab, how can I adjust
Martin Cox
Sep 08, 2022Copper Contributor
Quick links (and navigation links) in SharePoint Online open the target site in the same tab if the target is a SharePoint page, otherwise (the target is an external target) they open in a new browser tab.
A work-around that requires user training is to Ctrl+click any link that the user wants to open in a new browser tab. Also, if the mouse has a scroll wheel, clicking the link with the scroll wheel causes the browser to open the target in a new browser tab.
To make a regular mouse click open a link to a SharePoint page in a new tab, there are several options:
A. Use Bitly (https://bitly.com/) to convert any internal SharePoint URL like https://contosocorp.sharepoint.com/Lists/sc1/calendar.aspx to a “short” link like https://bit.ly/3Fru34e. The short link looks like an external target. This causes SharePoint to open that target in a new browser tab.
B. As documented on code2care https://code2care.org/sharepoint/how-to-open-sharepoint-online-modern-sfpx-links-in-new-tab-window, you can use a custom web part that allows you to embed custom HTML into a SharePoint page. Samson would need to deploy the SPFx Content Editor Web Part which works like the classic SharePoint CEWP and then embed links with the attributes target=”_blank” and data-interception="off"
C. My Microsoft Partner version of SharePoint Online has a cool new OOTB web part called the HTML Content Editor, enriched with the warning "USE WITH CAUTION". This web part let me do the same thing as the SPFx Content Editor Web Part does in option B. above except without SPFx. No idea when this will be available to my clients.
A work-around that requires user training is to Ctrl+click any link that the user wants to open in a new browser tab. Also, if the mouse has a scroll wheel, clicking the link with the scroll wheel causes the browser to open the target in a new browser tab.
To make a regular mouse click open a link to a SharePoint page in a new tab, there are several options:
A. Use Bitly (https://bitly.com/) to convert any internal SharePoint URL like https://contosocorp.sharepoint.com/Lists/sc1/calendar.aspx to a “short” link like https://bit.ly/3Fru34e. The short link looks like an external target. This causes SharePoint to open that target in a new browser tab.
B. As documented on code2care https://code2care.org/sharepoint/how-to-open-sharepoint-online-modern-sfpx-links-in-new-tab-window, you can use a custom web part that allows you to embed custom HTML into a SharePoint page. Samson would need to deploy the SPFx Content Editor Web Part which works like the classic SharePoint CEWP and then embed links with the attributes target=”_blank” and data-interception="off"
C. My Microsoft Partner version of SharePoint Online has a cool new OOTB web part called the HTML Content Editor, enriched with the warning "USE WITH CAUTION". This web part let me do the same thing as the SPFx Content Editor Web Part does in option B. above except without SPFx. No idea when this will be available to my clients.