admin: Fix video route

This commit is contained in:
nemunaire 2022-05-23 01:39:35 +02:00
commit 4a190f51c5
8 changed files with 28 additions and 7 deletions

View file

@ -84,6 +84,11 @@ angular.module("FICApp")
}]);
angular.module("FICApp")
.filter("escapeURL", function() {
return function(input) {
return encodeURIComponent(input);
}
})
.filter("stripHTML", function() {
return function(input) {
if (!input)

View file

@ -7,5 +7,5 @@
</h2>
<div class="text-center">
<video src="vids/{{exercice.videoURI}}" controls style="height: 80vh; margin: auto;"></video>
<video src="vids/{{exercice.videoURI.replace('\$FILES\$/','').replace('?', '%3F')}}" controls style="height: 80vh; margin: auto;"></video>
</div>