   ###
   env.addFilter 'spread', (input, delimiter = ' ') ->
     if typeof input != 'object'
-      grunt.log.error('[spread] input should be object, but `' + typeof input + '` has been specified', '[' + this.ctx.page.href + ']')
+      grunt.log.error('[spread] input should be object, but `' + typeof input + '` has been specified', '[' + @ctx.page.href + ']')
       return
 
     spreaded = ' '

   * @todo Related issue https://github.com/mozilla/nunjucks/issues/783
  ###
  env.addFilter 'render', (input, isCaller = false, logUndefined = false) ->
    render(env, @getVariables(), input, isCaller, grunt.log.error, logUndefined, this.ctx.page.props.href)

  ###*
   * Replace placeholders with provided values. Refer to `printf` module for docs


  ###*
   * Determinate is current path active relatively to current page breadcrumb or no
   * @param  {string} to                                     Absolute or relative path to page based
   *                                                         based on `pages.yml`
   * @param  {bool} onlyActiveOnIndex = false                Set anchor to be active only in case current link's
   *                                                         and page's breadcrumbs completely matches
   * @param  {array} pageBreadcrumb   = @ctx.page.breadcrumb Breadcrumb of current page for comparison
   * @return {bool} Is current path active or no
  ###
  env.addGlobal 'isActive', (to, onlyActiveOnIndex = false, pageBreadcrumb = @ctx.page.breadcrumb) ->
    isAbsolute = if _.startsWith(to, '/') then true else false

    linkBreadcrumb = crumble(to)
