anchor.diff:            linksWithoutEvents = $(iframeSelector).contents().find("a:urlInternal");
           }
   
  +        // When click all internal links that has no events attached
  +				// change url anchor
           $(linksWithoutEvents).click(function(){
  -          // Copy URL in clicked link to anchor in window.location
  +          // Copy URL from clicked link to anchor in window.location
             var hrefTo = $(this).attr("href");
   
  -          var newAnchor = setAnchorUrl(hrefTo);
  +          var newUrl = getUrlWithNewAnchor(hrefTo);
   
  -          iframeChanged = true;
  -          $.bbq.pushState({ url: newAnchor });
  +					$.param.fragment.noEscape( ",/?=" );
  +          $.bbq.pushState({ url: newUrl });
           });
         }
   			
         function getUrlInAnchor(url) {
  -		    var anchor = $.url.setUrl(url).attr("anchor");
  +        var anchor = $.url.setUrl(url).attr("anchor");
  +				//var anchor = $.url.parse( window.location.href );
           var anchorUrl;
           if ( anchor ) {
  -          var splittedString = anchor.split("=",2);
  -          if ( splittedString.length == 2 && splittedString[0] == "url" ) {
  -            anchorUrl = $.url.setUrl(splittedString[1]).attr("relative");
  -          }					
  +					// "url=/spaces?space_id=my" -> "/spaces?space_id=my"
  +          anchorUrl = anchor.slice(anchor.search(/url=/)+4, anchor.length);	
           }
           return anchorUrl;
         }
   
         $(document).ready(function(){
   
  -        $(window).bind("resize", resizeIframe);
  +        // When window trigger resize event -> run resizeIframe function 
  +        //$(window).bind("resize", resizeIframe);
   
  +        // When iframe is loaded
           $(iframeSelector).load(function(){
             resizeIframe();
             prepareLinks();
  -          // If iframe load comes from redirect (eg. space selector)... 
  +					// When iframe load comes from redirect (not from click link) (eg. space selector) anchor will not change
  +					// Then we must change it 
             if (!isEqualsToCurrentUrl(getUrlInAnchor(window.location.href))) {
               var iframeLocation = $(iframeSelector).contents().attr("location").href;
               var relativeIframeLocation = $.url.setUrl( iframeLocation ).attr("relative");
  +						$.param.fragment.noEscape( ",/?=" );
               $.bbq.pushState({ url: relativeIframeLocation });
             }
  +					// Bind a resize event to iframe content, then if iframe content height is dynamically changed
  +					// Iframe height will be adjusted
  +					$(iframeSelector).contents().find(contentIframeSelector).bind('resize', resizeIframe);
           });
   
           $(window).bind( "hashchange", function(e) {
  
positive.code:         $(aLink).attr("target", "_top");
        }
  
        function prepareLinks() {
          $(iframeSelector).contents().find("a:urlExternal").click(function(){
            skipIframe(this);
          });
  
          $(iframeSelector).contents().find("#logout_link").click(function(){
            skipIframe(this);
          });
  
          var linksWithoutEvents;
          // Test if children page has loaded jQuery
          if ($(iframeSelector)[0].contentWindow.jQuery != null) {
            baUrlInternal($(iframeSelector)[0].contentWindow.jQuery);
            $(iframeSelector)[0].contentWindow.jQuery.urlInternalHost( absoluteBaseUrlApp );
            var internalLinks = $(iframeSelector)[0].contentWindow.jQuery("a:urlInternal");
  
  
negative.code:             var relativeInitPage = $.url.setUrl( absoluteInitPage ).attr("relative");
              $.bbq.pushState({ url: relativeInitPage });
            }
          });
  
          $(window).trigger( "hashchange" );
  
          // Wait a few seconds to load all needed libraries and login into chat
          setTimeout(function(){iJab.login(ijab_auto_user,"")}, 2000);
  
          // When unload the page logout from chat
          $(document).unload(function() {
            iJab.logout();
          });
  