Skip to content

Commit

Permalink
remove / from redirection target..?
Browse files Browse the repository at this point in the history
  • Loading branch information
couleurm committed Dec 4, 2023
1 parent 923331c commit 5c03dd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redirector.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ foreach ($filepath in $mdFiles.FullName) {

$Parameters = @{
Path = Join-Path (Resolve-Path ./docs) $filename/index.html
Value = New-HtmlRedirect -url "/$target"
Value = New-HtmlRedirect -url "$target"
}
if ($env:YES_MAKE_TONS_OF_FOLDERS) { Set-Content @Parameters }

Expand All @@ -75,7 +75,7 @@ foreach ($key in [string[]]$table.keys) {

$Parameters = @{
Path = Join-Path (Resolve-Path ./docs) $key/index.html
Value = New-HtmlRedirect -url "/$($table.$key)"
Value = New-HtmlRedirect -url "$($table.$key)"
}
if ($env:YES_MAKE_TONS_OF_FOLDERS) { Set-Content @Parameters }

Expand Down

0 comments on commit 5c03dd4

Please sign in to comment.