       callback    : =>
         @ldc.handleNavigationItemClick
           action  : 'register'
-          path    : '/Register'
+          path    : "#{@prefix}/Register"
 
 
   pistachio:->

      callback    : =>
        @ldc.handleNavigationItemClick
          action  : 'logout'
          path    : '/Logout'


  addRegisterButton:->


    @ldc = @getSingleton 'lazyDomController'
    @mc  = @getSingleton 'mainController'

    @prefix =
      if @ldc.userEnteredFromGroup() and KD.config.groupEntryPoint isnt 'koding'
          "/#{KD.config.groupEntryPoint}"
      else ""

    @buttonGroup = new KDView

