Prevent links with href="#" from changing page URL

This shouldn't cause any problems since no links currently use this technique. If necessary, #top, #_, etc. should still work.