To get external targets for internal links working I had to set: $wgLinkTargetParentClasses = [ '_blank' => [ '' ] ]; $wgLinkTargetDefault = '_blanc'; was not working for me without specifying this.