Open external links in modern sharepoint sites and hub site navigation in a new tab

%3CLINGO-SUB%20id%3D%22lingo-sub-201104%22%20slang%3D%22en-US%22%3EOpen%20external%20links%20in%20modern%20sharepoint%20sites%20and%20hub%20site%20navigation%20in%20a%20new%20tab%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-201104%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%20we%20have%20several%20external%20links%20on%20modern%20sharepoint%20pages%20and%20in%20our%20hub%20site%20navigation.%20Do%20you%20know%20any%20way%20to%20make%20it%20possible%20to%20open%20these%20links%20in%20a%20new%20tab%20(especially%20for%20ext.%20links%20in%20hub%20site%20navigation%20and%20quicklinks%20web%20part)%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAutomatically%20opens%20ext.%20links%20in%20the%20same%20tab%3A%3C%2FP%3E%3CP%3E-hub%20site%20navigation%3CBR%20%2F%3E-quicklinks%20web%20part%3CBR%20%2F%3EAutomatically%20opens%20ext.%20links%20in%20a%20new%20tab%3A%3C%2FP%3E%3CP%3E-Hero%20web%20part%3CBR%20%2F%3E-communication%20site%20navigation%3C%2FP%3E%3CP%3EAppreciate%20your%20help!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-201104%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-201110%22%20slang%3D%22en-US%22%3ERe%3A%20Open%20external%20links%20in%20modern%20sharepoint%20sites%20and%20hub%20site%20navigation%20in%20a%20new%20tab%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-201110%22%20slang%3D%22en-US%22%3E%3CP%3EHub%20site%20root%20links%20open%20in%20new%20tab%20(renderd%20as%20a-Element%20with%20target%3D%22_blank%22%2C%20Level%201%20and%202%20not%20(rendered%20as%20span%20in%20a%20div%20in%20an%20a-Element%20without%20target%20attribute).%20Maybe%20write%20our%20own%20SPFx%26nbsp%3B%3CSPAN%3EApplication%20Customizers%3C%2FSPAN%3E%20and%20add%20target%3D%22_blank%22%20to%20menu.%20Or%20user%20voice%20for%20a%20better%20link%20editor%20for%20the%20hub%20site%20links.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello, we have several external links on modern sharepoint pages and in our hub site navigation. Do you know any way to make it possible to open these links in a new tab (especially for ext. links in hub site navigation and quicklinks web part)?

 

Automatically opens ext. links in the same tab:

-hub site navigation
-quicklinks web part
Automatically opens ext. links in a new tab:

-Hero web part
-communication site navigation

Appreciate your help!

2 Replies

Hub site root links open in new tab (renderd as a-Element with target="_blank", Level 1 and 2 not (rendered as span in a div in an a-Element without target attribute). Maybe write our own SPFx Application Customizers and add target="_blank" to menu. Or user voice for a better link editor for the hub site links.

so deploy aplication customizer to each site collection from hub?
also if new site is added to hub we need to remember to enable application customizer?