Skip to content

Commit

Permalink
Fixes Issue with Trailing Slash
Browse files Browse the repository at this point in the history
  • Loading branch information
NikCharlebois committed Nov 25, 2020
1 parent cadc1e4 commit 0ee95e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,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.
- SPFarm
- Switched from creating a Lock database to a Lock table in the TempDB.
This to allow the use of precreated databases.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,13 @@ function Set-TargetResource
$aamForUrl = $webAppAams | Where-Object -FilterScript {
$_.IncomingUrl -eq $params.Url
}
if ($null -eq $aamForUrl -and $params.Url.ToString().EndsWith('/'))
{
$urlToFind = $params.Url.Remove($params.Url.Length - 1, 1)
$aamForUrl = $webAppAams | Where-Object -FilterScript {
$_.IncomingUrl -eq $urlToFind
}
}

if ($null -eq $aamForUrl)
{
Expand Down

0 comments on commit 0ee95e8

Please sign in to comment.