In order to keep URLs intact, use the data-target attribute instead of href="#".

This is according to twitter bootstrap's official documentation - see http://twitter.github.com/bootstrap/javascript.html#dropdowns for details.