script hash value, loss of one alphanumeric character
<p>I had to rename all of my .html files to .php so that I can use php gzip compression. Anyway the switch has broken one of my scripts. It's a script that loads in and animates content. It grabs the content from various pages and loads it into a container. That part of the script works fine.</p>

<p>When using the .html extension, the script will happily append the page being viewed to the URL, as in: www.site.com/#ABOUT</p>

<p>But now that I've renamed everything from .html to .php, there's always a missing letter, as in: www.site.com/#ABOU &lt;--- missing a 'T'</p>

<p>Or, www.site.com/#CONTAC &lt;--- missing a 'T'</p>

<p>www.site.com/#NEWSLETTE &lt;--- missing an 'R'</p>

<p>Here's the part of the script that does this append function:</p>

<pre><code>var hash = window.location.hash.substr(1);
var href = $('#nav li a').each(function(){
    var href = $(this).attr('href');
    if(hash==href.substr(0,href.length-5)){
        var toLoad = hash+'.php #content';  &lt;--- .php (was: .html)
        $('#content').load(toLoad)
    }                                           
});
</code></pre>

<p>What's up with this?</p>
