From 722858d3709510ea549c0f7a191a0391abeaa79f Mon Sep 17 00:00:00 2001 From: Couleur <82747632+couleurm@users.noreply.github.com> Date: Mon, 4 Dec 2023 15:04:36 +0100 Subject: [PATCH] throw stuff at it until it works --- redirector.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 }