     # Pop open the menu unless the page was explicitly navigated to
     {isMenuVisible: not cnxId}
 
-  showTeacherEdition: ->
+  toggleTeacherEdition: (ev) ->
     @setState(showTeacherEdition: not @state.showTeacherEdition)
+    ev?.preventDefault() # stops react-router from scrolling to top
 
   onMenuClick: ->
     @toggleMenuState() unless window.innerWidth > MENU_VISIBLE_BREAKPOINT

    classnames = ["reference-book"]
    classnames.push('menu-open') if @state.isMenuVisible
    if course and _.findWhere(course.roles, type: 'teacher')
      showTeacher = @showTeacherEdition
      teacherLinkText = if @state.showTeacherEdition
        classnames.push('is-teacher')
        "Hide Teacher Edition"

      <NavBar
        toggleTocMenu={@toggleMenuState}
        teacherLinkText={teacherLinkText}
        showTeacherEdition={toggleTeacher}
        courseId={courseId}/>
      <div className="content">
        <Menu onMenuSelection={@onMenuClick} />
