diff --git a/redirector.ps1 b/redirector.ps1 index 8e22ffc..283cd62 100644 --- a/redirector.ps1 +++ b/redirector.ps1 @@ -7,6 +7,8 @@ #> +$root = "https://ctt.cx/" + Set-Location $PSScriptRoot function New-HtmlRedirect ($url) { @@ -52,7 +54,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 "$root$target" } if ($env:YES_MAKE_TONS_OF_FOLDERS) { Set-Content @Parameters } @@ -75,7 +77,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 "$root$($table.$key)" } if ($env:YES_MAKE_TONS_OF_FOLDERS) { Set-Content @Parameters }