diff --git a/docs/app/src/versions.js b/docs/app/src/versions.js index 701f41d38cb1..d2f6f217078f 100644 --- a/docs/app/src/versions.js +++ b/docs/app/src/versions.js @@ -5,11 +5,11 @@ angular.module('versions', []) $scope.docs_version = NG_VERSIONS[0]; $scope.jumpToDocsVersion = function(version) { - var currentPagePath = $location.path(); + var currentPagePath = $location.path().replace(/\/$/, ''); // TODO: We need to do some munging of the path for different versions of the API... - + $window.location = version.docsUrl + currentPagePath; }; -}]); \ No newline at end of file +}]);