diff --git a/src/CoreBundle/Command/UpdateVueTranslations.php b/src/CoreBundle/Command/UpdateVueTranslations.php index e51b55b489..b1a143eeb4 100644 --- a/src/CoreBundle/Command/UpdateVueTranslations.php +++ b/src/CoreBundle/Command/UpdateVueTranslations.php @@ -77,7 +77,8 @@ class UpdateVueTranslations extends Command $newLanguage[$variable] = $this->replaceMarkers($translated); } $newLanguage = array_filter($newLanguage); - $newLanguageToString = json_encode($newLanguage, JSON_PRETTY_PRINT); + $newLanguageToString = json_encode($newLanguage, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); + $newLanguageToString = str_replace('
', '
', $newLanguageToString); $fileToSave = $vueLocalePath.$iso.'.json'; file_put_contents($fileToSave, $newLanguageToString); $output->writeln("json file generated for iso $iso: $fileToSave"); diff --git a/src/CoreBundle/Controller/CourseController.php b/src/CoreBundle/Controller/CourseController.php index ebe9d29813..f524a67e69 100644 --- a/src/CoreBundle/Controller/CourseController.php +++ b/src/CoreBundle/Controller/CourseController.php @@ -241,13 +241,13 @@ class CourseController extends ToolBaseController #[Route('/{cid}/tool/{toolName}', name: 'chamilo_core_course_redirect_tool')] public function redirectTool( Request $request, - string $toolTitle, + string $toolName, CToolRepository $repo, ToolChain $toolChain ): RedirectResponse { /** @var CTool|null $tool */ $tool = $repo->findOneBy([ - 'title' => $toolTitle, + 'title' => $toolName, ]); if (null === $tool) {