Skip to content

Commit c761bb9

Browse files
Merge pull request KelvinTegelaar#1757 from Zacgoose/dev
Enterprise Apps link in new service principal alerts are not in the correct format
2 parents de77f61 + 6a29014 commit c761bb9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modules/CIPPCore/Public/New-CIPPAlertTemplate.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ function New-CIPPAlertTemplate {
228228
$IntroText = $IntroText + "<p>The (potential) location information for this IP is as follows:</p>$LocationTable"
229229
}
230230
$IntroText = "$($data.ObjectId) has been added by $($data.UserId)."
231-
$ButtonUrl = "$CIPPURL/tenant/administration/enterprise-apps?customerId=?customerId=$($data.OrganizationId)"
231+
$ButtonUrl = "$CIPPURL/tenant/administration/applications/enterprise-apps?tenantFilter=$Tenant"
232232
$ButtonText = 'Enterprise Apps'
233233
}
234234
'Remove service principal.' {
@@ -240,8 +240,8 @@ function New-CIPPAlertTemplate {
240240
$LocationTable = ($LocationInfo | ConvertTo-Html -Fragment -As List | Out-String).Replace('<table>', ' <table class="table-modern">')
241241
$IntroText = $IntroText + "<p>The (potential) location information for this IP is as follows:</p>$LocationTable"
242242
}
243-
$IntroText = "$($data.ObjectId) has been added by $($data.UserId)."
244-
$ButtonUrl = "$CIPPURL/tenant/administration/enterprise-apps?customerId=?customerId=$($data.OrganizationId)"
243+
$IntroText = "$($data.ObjectId) has been removed by $($data.UserId)."
244+
$ButtonUrl = "$CIPPURL/tenant/administration/applications/enterprise-apps?tenantFilter=$Tenant"
245245
$ButtonText = 'Enterprise Apps'
246246
}
247247
'UserLoggedIn' {

0 commit comments

Comments
 (0)