Modified Permalink behavior to access a newer, faster API
This commit is contained in:
parent
57016f2f45
commit
c0f8fbb24f
|
@ -32,8 +32,8 @@ angular.module('lemur')
|
|||
$scope.path = $location.path();
|
||||
// Handle Permalink clicks through a separate API
|
||||
// Clicking on Permalink adds the certificate name to the URL after "certificates/", which is used to identify the click
|
||||
if ($scope.path.indexOf("certificates/") > -1 && $scope.path.split("/")[2].length > 0) {
|
||||
$scope.certificateName = $scope.path.split("/")[2];
|
||||
if ($scope.path.indexOf('certificates/') > -1 && $scope.path.split('/')[2].length > 0) {
|
||||
$scope.certificateName = $scope.path.split('/')[2];
|
||||
CertificateApi.one('name').one($scope.certificateName).getList()
|
||||
.then(function (data) {
|
||||
params.total(data.total);
|
||||
|
|
Loading…
Reference in New Issue