Welcome to the new Customer Portal! We are still in the process of moving all our customers so please bear with us if you are temporarily unable to log in. You can still email [email protected]!

I'd like to add links to my navbar - and add Selected class automatically.

I know how to add a simple link to my navbar, but it won't mark the link with the Selected class. Is there a way to do this with the Corporate account so links to certain things (like tags I want the users to have quick access to) get marked Selected?

I've been able to get it to work with jQuery, but I'm sure there's a better way...

here's how I'm doing it currently to add add to the link for tagged/release-notes:

// add .Selected to the release-notes navbar menu when looking at release notes
var url = window.location.href;
if (url.search("tagged/release-notes") >= 0) 
{
    $('a[href*="/tagged/release-notes"]').addClass('Selected');
}
This discussion has been closed.