Mark the navbar item active when appropriate.