Fix version controller links (for realsies)
This time tested on pretty much all situations and add proper links as a result. 

In particular: 
- not sure that `location.toString()` will end with a '/' or not when on the index, this works with both
- when nested, use the previous value and not an absolute one
- the base url needs to be slice up to the version, including it for stable