Fixed handling for same page links in slideout and the secondary navigation (#2007).