fixing closing button behaviour

This commit is contained in:
Tobi 2025-04-28 08:12:50 +02:00
parent cf2bf7ac6b
commit 932620e27b
2 changed files with 4 additions and 3 deletions

View file

@ -2,8 +2,8 @@
async function loadContent(sectionId, contentFile) {
try {
console.log(`Loading content for ${sectionId} from ${contentFile}`);
// Use relative path instead of absolute path
const response = await fetch(`../content/${contentFile}`);
// Use correct relative path
const response = await fetch(`/content/${contentFile}`);
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}