diff --git a/src/Service/CodeGeneratorService.php b/src/Service/CodeGeneratorService.php
index 585ab1cd43797548c05cf711abc80ad03306f012..65b462dd02e413ca7246c3d1ef915546f89fadfb 100644
--- a/src/Service/CodeGeneratorService.php
+++ b/src/Service/CodeGeneratorService.php
@@ -482,7 +482,7 @@ class CodeGeneratorService
 
         $id = uniqid('bloc_code_');
         ?>
-        <a role="button" data-toggle="collapse" href="#<?= $id ?>" aria-expanded="<?= $expanded ? 'true' : 'false' ?>" aria-controls="collapseExample">
+        <a role="button" data-bs-toggle="collapse" href="#<?= $id ?>" aria-expanded="<?= $expanded ? 'true' : 'false' ?>" aria-controls="collapseExample">
             <?= $filename ?>
         </a>
         <?php if (!$write): ?>