commit 53668a01925a2ec2a62b5b661ef180dde7ecb384
parent f175601650dcdaf730f48ac61bb1b8764e974608
Author: Brian Mayer <bleemayer@gmail.com>
Date: Tue, 17 Jan 2023 23:18:45 -0300
Merge pull request #24 from rnwgnr/main
fix relative links with leading /
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/astro b/astro
@@ -131,7 +131,7 @@ parseurl() {
if [ "$oldhost" ]
then
case "$url" in
- "/"*) url="$oldhost$1" ;;
+ "/"*) url="$oldhost$url" ;;
*) oldpath="/${oldpath#/*}"; url="$oldhost${oldpath%/*}/$url" ;;
esac
fi