hash based routing, check for '/#' or '#' before adding it to a route

I've made a small patch to hash based routing to prevent urls from getting extra '/#' prepended to them.

I've had links like: 
```
<a href="#somepath/xyz"></a>
```

And it in the url we sometimes see: 
```
/#/#/somepath/xyz
```

And a log message with routeNotFound

This patch fixes that problem....