Skip to content

Commit

Permalink
Fix broken urls due to renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis531 committed Nov 12, 2024
1 parent 9aa3965 commit dc3a3ec
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions courseware/vueapp/courseware-plugin-opencast-video.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export default {
performSelectVideo(video) {
this.currentVideoId = video.token;
this.currentEpisodeURL = STUDIP.ABSOLUTE_URI_STUDIP + 'plugins.php/opencast/redirect/perform/video/' + video.token;
this.currentEpisodeURL = STUDIP.ABSOLUTE_URI_STUDIP + 'plugins.php/opencastv3/redirect/perform/video/' + video.token;
this.currentVisible = video?.visibility || 'public';
},
Expand Down Expand Up @@ -208,7 +208,7 @@ export default {
initCurrentData() {
this.currentVideoId = get(this.block, "attributes.payload.token", "");
this.currentEpisodeURL =STUDIP.ABSOLUTE_URI_STUDIP + 'plugins.php/opencast/redirect/perform/video/' + this.currentVideoId;
this.currentEpisodeURL =STUDIP.ABSOLUTE_URI_STUDIP + 'plugins.php/opencastv3/redirect/perform/video/' + this.currentVideoId;
this.currentVisible = get(this.block, "attributes.payload.visible", "");
let copied_from = get(this.block, "attributes.payload.copied_from", "");
Expand Down
2 changes: 1 addition & 1 deletion lib/Models/VideosUserPerms.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public static function setPermissions($eventType, $episode, $video)
// notify user, that one of his videos is now available
\PersonalNotifications::add(
$user_id,
\URLHelper::getURL('plugins.php/opencast/contents/index', [], true),
\URLHelper::getURL('plugins.php/opencastv3/contents/index', [], true),
sprintf(_('Das Video mit dem Titel "%s" wurde fertig verarbeitet.'), $episode->title),
"opencast_" . $episode->identifier,
\Icon::create('video'),
Expand Down
2 changes: 1 addition & 1 deletion lib/Routes/Video/VideoSharesList.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __invoke(Request $request, Response $response, $args)
$old_url_helper_url = \URLHelper::setBaseURL($GLOBALS['ABSOLUTE_URI_STUDIP']);
foreach ($video->shares->toArray() as $share) {
$share['link'] = \URLHelper::getURL(
"plugins.php/opencast/redirect/perform/share/{$share['token']}",
"plugins.php/opencastv3/redirect/perform/share/{$share['token']}",
['cancel_login' => 1]
);
$shares[] = $share;
Expand Down
2 changes: 1 addition & 1 deletion vueapp/components/Courses/CoursesSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export default {
'upload.seriesId' : this.course_config['series']['series_id'],
'upload.acl' : true,
'upload.workflowId': this.getWorkflow(config_id),
'return.target' : window.STUDIP.URLHelper.getURL('plugins.php/opencast/course?cid=' + this.cid),
'return.target' : window.STUDIP.URLHelper.getURL('plugins.php/opencastv3/course?cid=' + this.cid),
'return.label' : 'Stud.IP'
}
);
Expand Down
2 changes: 1 addition & 1 deletion vueapp/components/Playlists/PlaylistAddToCourseDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default {
methods: {
getCourseLink(course) {
return window.STUDIP.URLHelper.getURL('plugins.php/opencast/course?cid=' + course.id + '#/course/videos')
return window.STUDIP.URLHelper.getURL('plugins.php/opencastv3/course?cid=' + course.id + '#/course/videos')
},
addCourse(course) {
Expand Down
2 changes: 1 addition & 1 deletion vueapp/components/Videos/Actions/VideoCopyToSeminar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default {
methods: {
getCourseLink(course) {
return window.STUDIP.URLHelper.getURL('plugins.php/opencast/course?cid=' + course.id)
return window.STUDIP.URLHelper.getURL('plugins.php/opencastv3/course?cid=' + course.id)
},
addCourseToList(course) {
Expand Down
2 changes: 1 addition & 1 deletion vueapp/components/Videos/VideosSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export default {
'upload.seriesId' : this.currentUserSeries,
'upload.acl' : false,
'upload.workflowId': this.getWorkflow(config_id),
'return.target' : window.STUDIP.URLHelper.getURL('plugins.php/opencast/contents/index#/contents/videos'),
'return.target' : window.STUDIP.URLHelper.getURL('plugins.php/opencastv3/contents/index#/contents/videos'),
'return.label' : 'Stud.IP'
}
);
Expand Down

0 comments on commit dc3a3ec

Please sign in to comment.