docs(versions): remove the trailing slash in URLs when switch versions

Because https://docs.angularjs.org/api/ can handler the trailing slash, but https://code.angularjs.org/1.2.24/docs/api/ can not.

Fix #9043