diff --git a/CHANGELOG.md b/CHANGELOG.md index d373905b4..74497ecfa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- SPAlternateUrl + - Fixed issue where trailing '/' cause Url not to be recognized. - SharePointDsc - Updated Convert-SPDscHashtableToString to output the username when parameter is a PSCredential diff --git a/SharePointDsc/DSCResources/MSFT_SPAlternateUrl/MSFT_SPAlternateUrl.psm1 b/SharePointDsc/DSCResources/MSFT_SPAlternateUrl/MSFT_SPAlternateUrl.psm1 index 946b8d81f..a5755e0bb 100644 --- a/SharePointDsc/DSCResources/MSFT_SPAlternateUrl/MSFT_SPAlternateUrl.psm1 +++ b/SharePointDsc/DSCResources/MSFT_SPAlternateUrl/MSFT_SPAlternateUrl.psm1 @@ -166,7 +166,7 @@ function Set-TargetResource { # WebApp has one or more AAMs, check for URL $aamForUrl = $webAppAams | Where-Object -FilterScript { - $_.IncomingUrl -eq $params.Url + $_.IncomingUrl -eq $params.Url.TrimEnd('/') } if ($null -eq $aamForUrl)