Do not intercept navigation if it's a standard # anchor

Fix IE anchor click handling:
- IE8 and below do not have preventDefault()
- the IE8 onclick handlers never returns the correct event.button information
Decode path/query parameters