Skip to content

Commit 598d5d3

Browse files
CopilotZacgoose
andcommitted
Fix service principal alert URL structure
Changed URL structure for Add and Remove service principal alerts: - Updated path from /tenant/administration/enterprise-apps to /tenant/administration/applications/enterprise-apps - Changed query parameter from customerId=?customerId= to tenantFilter= with tenant default domain - Fixes incorrect URL generation that was using double customerId parameter Co-authored-by: Zacgoose <[email protected]>
1 parent 6580150 commit 598d5d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/CIPPCore/Public/New-CIPPAlertTemplate.ps1

Lines changed: 2 additions & 2 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.' {
@@ -241,7 +241,7 @@ function New-CIPPAlertTemplate {
241241
$IntroText = $IntroText + "<p>The (potential) location information for this IP is as follows:</p>$LocationTable"
242242
}
243243
$IntroText = "$($data.ObjectId) has been added by $($data.UserId)."
244-
$ButtonUrl = "$CIPPURL/tenant/administration/enterprise-apps?customerId=?customerId=$($data.OrganizationId)"
244+
$ButtonUrl = "$CIPPURL/tenant/administration/applications/enterprise-apps?tenantFilter=$Tenant"
245245
$ButtonText = 'Enterprise Apps'
246246
}
247247
'UserLoggedIn' {

0 commit comments

Comments
 (0)