Skip to content

Commit 167d2dc

Browse files
authored
Merge pull request #18 from Zacgoose/copilot/fix-service-principle-alert-url
Fix service principal alert URL structure
2 parents e03c96a + 4c1ac08 commit 167d2dc

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)