       $(this).toggleClass 'is-active'
 
       if $.cookie('pin_nav') is 'true'
-        $.cookie 'pin_nav', 'false'
+        $.cookie 'pin_nav', 'false', { path: '/' }
         $('.page-with-sidebar')
           .removeClass('page-sidebar-pinned')
           .toggleClass('page-sidebar-collapsed page-sidebar-expanded')


  # Sidenav pinning
  if $(window).width() < 1440 and $.cookie('pin_nav') is 'true'
    $.cookie('pin_nav', 'false')
    $('.page-with-sidebar')
      .toggleClass('page-sidebar-collapsed page-sidebar-expanded')
      .removeClass('page-sidebar-pinned')

          .removeClass('header-pinned-nav')
          .toggleClass('header-collapsed header-expanded')
      else
        $.cookie 'pin_nav', 'true', { path: '/' }
        $('.page-with-sidebar').addClass('page-sidebar-pinned')
        $('.navbar-fixed-top').addClass('header-pinned-nav')
