HTML – Bootstrap JavaScript Not Loading Due to Wrong File Path

Home Forums Bugs HTML – Bootstrap JavaScript Not Loading Due to Wrong File Path

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1442
    Eugest Xhelollari
    Participant

    🔴 Error

    Bootstrap JS file path is wrong
    ❌ Before (broken):

    <script src=”../assets/dist/js/bootstrap.bundle.min.js”></script>

    What’s wrong: The path ../assets/dist/js/ points to a folder that does not exist in this project. The actual Bootstrap JS file is located at assets/js/, not assets/dist/js/. This means Bootstrap’s JavaScript (dropdowns, modals, theme toggle) will not work at all.

    ✅ After (fixed):

    <!– Corrected path: removed the non-existent /dist/ folder from the path –>
    <script src=”<?=ROOT?>/assets/js/bootstrap.bundle.min.js”></script>

    Why it’s fixed: The path now correctly points to where the Bootstrap JS file actually lives in the project, so all Bootstrap interactive features will work properly.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.