We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4899e78 commit ccc33adCopy full SHA for ccc33ad
docs/app/src/versions.js
@@ -5,11 +5,11 @@ angular.module('versions', [])
5
$scope.docs_version = NG_VERSIONS[0];
6
7
$scope.jumpToDocsVersion = function(version) {
8
- var currentPagePath = $location.path();
+ var currentPagePath = $location.path().replace(/\/$/, '');
9
10
// TODO: We need to do some munging of the path for different versions of the API...
11
-
+
12
13
$window.location = version.docsUrl + currentPagePath;
14
};
15
-}]);
+}]);
0 commit comments