     # prevent transition to same page
     unless @currentPageId is pageId
       # tell pjax to nav to page
-      # console.log "pageId ", pageId
       $.pjax({url: url, container: @contentSelector, fragment: @contentSelector})
       # $.pjax({url: "/#{pageId}", container: @contentSelector, fragment: @contentSelector})
 

    @yTo = window.innerHeight - @$navigation.outerHeight()


  onPjaxBeforeReplace: (e, contents, options) =>
    @calculateY()

    # hide hero if we were standing on the home page before navigating

    # hide content fast when navigating between all other pages
    unless @getPageIdFromUrl(options.url) is @HOMEPAGE_ID
      @hideContent()


  onPjaxEnd: (e, unused, options) =>
