I'm trying to do a replace on a hash so I can call a html file that matches its name.
For example:
var url = '/partials/' + ( hash.replace( /^#/, '' ) || 'blank' ) + '.html';
and hash will be:
#/home/
at the moment it will only remove the #
what have I missed?