mitchell852 commented on a change in pull request #4528: Deprecate 
users/{userId}/deliveryServices
URL: https://github.com/apache/trafficcontrol/pull/4528#discussion_r399393282
 
 

 ##########
 File path: 
traffic_portal/app/src/common/modules/form/user/FormUserController.js
 ##########
 @@ -50,7 +50,7 @@ var FormUserController = function(user, $scope, $location, 
formUtils, stringUtil
     $scope.labelize = stringUtils.labelize;
 
     $scope.viewDeliveryServices = function() {
-        $location.path($location.path() + '/delivery-services');
+        $location.path('/tenants/' + userModel.user.tenantId + 
'/delivery-services');
 
 Review comment:
   actually, i think you can just get rid of the `userModel` part.....or you 
can pass user into the viewDeliveryServices function if you want to be more 
explicit.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to