Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

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

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/app/src/versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
}]);
}]);