Some trouble with UI Tabs

Some trouble with UI Tabs

Hello buddies. Happy New Year to all.

I faced with one strange behaviour using UI tabs. I just copied the very first example from demos page:
  1.       
    < div id = "tabs" >
         < ul >
             < li >< a href = "#tabs-1" >Nunc tincidunt</ a ></ li >
             < li >< a href = "#tabs-2" >Proin dolor</ a ></ li >
             < li >< a href = "#tabs-3" >Aenean lacinia</ a ></ li >
         </ ul >
         < div id = "tabs-1" > Nevermind</ div>
         < div id = "tabs-2" > Nevermind</ div >
         < div id = "tabs-3" > Nevermind </ div >
    </ div >
  2. < script >
         $(function() {
             $( "#tabs" ).tabs();
         });
    </ script >

Version of jQuery is 1.8.3, of UI is 1.9.2. When my page just loading ( URI is
http://localhost/project/admin/good/update/id/732/?hash=f59f6f829b11650bdc004df54bc665cd ), I have one AJAX request at the same time.  But i dont need aby AJAXs at all, I just wanna pretty tabs

I gave a glance at the sources. It's method isLocal at 10911 row that returns false, and so my hrefs look like remote, but they're not.

Here is the method:
  1. function isLocal( anchor ) {
        return anchor.hash.length > 1 &&
            anchor.href.replace( rhash, "" ) ===
                location.href.replace( rhash, "" )
                    // support: Safari 5.1
                    // Safari 5.1 doesn't encode spaces in window.location
                    // but it does encode spaces from anchors (#8777)
                    .replace( /\s/g, "%20" );
    }








anchor.hash.length returns 6

anchor.href.replace( rhash, "" ) returns http://localhost/project/admin/good/update/id/732/?hash=f59f6f829b11650bdc004df54bc665cd

and location.href.replace( rhash, "" ) .replace( /\s/g, "%20" ) returns http://localhost/project/


So last two results don't equal for sure. Anybody knows why is this method working like this?