fix linking in books list

This commit is contained in:
Santiago Forero 2023-01-19 09:07:55 -05:00 committed by GitHub
parent 99e695d350
commit 823f9d2857
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@
foreach($files as $file) {
if(is_file($dir.'/'.$file) && $file != 'index.php' && $file != 'default.php') {
$fileName = pathinfo($file)['filename'];
echo "<a href='books/$file'>$fileName</a><br>";
echo "<a href='/books/$file'>$fileName</a><br>";
}
}
?>
@ -24,4 +24,4 @@
<?php include "../layout/footer.php"; ?>
<?php include "../layout/footer.php"; ?>