diff --git a/src/main/webapp/app/exercise/exercise-details/exercise-metadata/exercise-metadata.component.html b/src/main/webapp/app/exercise/exercise-details/exercise-metadata/exercise-metadata.component.html
index c45e9e284a4caf89915cd88bc9137dd3e303ebea..1b8faf0ce6d392255c9869512d42849e2e5ccc59 100644
--- a/src/main/webapp/app/exercise/exercise-details/exercise-metadata/exercise-metadata.component.html
+++ b/src/main/webapp/app/exercise/exercise-details/exercise-metadata/exercise-metadata.component.html
@@ -116,7 +116,7 @@
   <jhi-exercise-metadata-item
     [description]="'exercise.metadata.internalIdentifier'"
     [value]="exercise.originalResult.exerciseId"
-    link="/item/{{ exercise.originalResult.exerciseId }}"
+    link="/item/{{ encodeURI(exercise.originalResult.exerciseId) }}"
   >
   </jhi-exercise-metadata-item>