Skip to content

Commit

Permalink
Merge pull request #1266 from NikCharlebois/master
Browse files Browse the repository at this point in the history
SPAlternateUrl: Fixes Issue with Trailing Slash
  • Loading branch information
ykuijs authored Nov 26, 2020
2 parents 022c3b9 + bbb96e4 commit afe7868
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit afe7868

Please sign in to comment.