All Collections
Widgets and Advanced How-to's
How to Stop Links Opening in a New Tab
How to Stop Links Opening in a New Tab

Super defaults to opening external URLs in a new tab - here's a way to change that

Charlene Abranilla avatar
Written by Charlene Abranilla
Updated over a week ago

If you find that links open in a new tab when you click them, you're not alone. This is a feature of Super's default settings.

If you'd like to change this you can use this script to do this in the Code > Body section

if(document.readyState === 'loading') {
} else {
function afterDOMLoaded(){
//Everything that needs to happen after the DOM has initially loaded.
.forEach(link => link.removeAttribute('target'));
Did this answer your question?