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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...