Jump to content
  • 0

[Question](11-03-2025) New Helpdesk Text / Link (URL) in client area to open in new window


Question

1 answer to this question

Recommended Posts

  • 0
Posted

I don't believe there's currently a way to add a target to the navigation links, at least not through the Navigation Editor. It might be possible with some custom javascript code. Per AI, something like this MIGHT work.

 

<script>
document.addEventListener('DOMContentLoaded', function() {
    // Target the specific link by its href
    var link = document.querySelector('a[href="/admin/plugin/support_manager/admin_main/"]');
    
    if (link) {
        link.addEventListener('click', function(event) {
            // Prevent the default behavior (e.g., dropdown toggle or navigation)
            event.preventDefault();
            
            // Open the link in a new window
            window.open(this.href, '_blank');
        });
    }
});
</script>

Replace "/admin/plugin/support_manager/admin_main/" with the Link URL, this example uses the support manager link in Blesta.

image.png

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...