diff --git a/public/seminar_main.php b/public/seminar_main.php index a4ac2fe0c9ad24910442b61601ea4283597ef1ac..68024487bdaa400b722211bd763c80518e6d3889 100644 --- a/public/seminar_main.php +++ b/public/seminar_main.php @@ -23,5 +23,13 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -require '../lib/bootstrap.php'; +require __DIR__ . '/../lib/bootstrap.php'; + +// Handle legacy links +// TODO: Remove at the latest for Stud.IP 7.0 +if (isset($_GET['auswahl']) && !isset($_GET['to'])) { + $_GET['to'] = $_GET['auswahl']; + unset($_GET['auswahl']); +} + header('Location: ' . URLHelper::getURL('dispatch.php/course/go', $_GET)); diff --git a/resources/vue/components/MyCoursesTables.vue b/resources/vue/components/MyCoursesTables.vue index 08d57da3c259adb49b507eddb5668435179d1c25..0bf9423553c7a132acea5aa52ac4ee80aab1d8fb 100644 --- a/resources/vue/components/MyCoursesTables.vue +++ b/resources/vue/components/MyCoursesTables.vue @@ -56,7 +56,7 @@ {{ course.number }} </td> <td :class="{'subcourse-indented': isChild(course)}"> - <a :href="urlFor('seminar_main.php', {auswahl: course.id})"> + <a :href="urlFor('seminar_main.php', {to: course.id})"> {{ getCourseName(course, getConfig('sem_number') && responsiveDisplay) }} <span v-if="course.is_deputy">{{ $gettext('[Vertretung]') }}</span> </a> diff --git a/resources/vue/components/MyCoursesTiles.vue b/resources/vue/components/MyCoursesTiles.vue index 1649238afb78c4095f332d3a1f8716979208da78..81e0237249e8d7703fe84c40139e50e096dcec22 100644 --- a/resources/vue/components/MyCoursesTiles.vue +++ b/resources/vue/components/MyCoursesTiles.vue @@ -24,7 +24,7 @@ ></studip-action-menu> </span> - <a :href="urlFor('seminar_main.php', {auswahl: course.id})" class="tiles-grid-element-header-content" :title="getCourseName(course, getConfig('sem_number'))"> + <a :href="urlFor('seminar_main.php', {to: course.id})" class="tiles-grid-element-header-content" :title="getCourseName(course, getConfig('sem_number'))"> <span :style="{backgroundImage: `url(${course.avatar})`}" class="tiles-grid-element-header-image"></span> <span class="tiled-grid-element-header-title"> {{ getCourseName(course, getConfig('sem_number')) }} diff --git a/resources/vue/mixins/MyCoursesMixin.js b/resources/vue/mixins/MyCoursesMixin.js index dcf73a6ec86fb0a82ca987ec9a5b8f8e163bb5dd..6b2270742d2e26aef7dc52abe4de431b45785b12 100644 --- a/resources/vue/mixins/MyCoursesMixin.js +++ b/resources/vue/mixins/MyCoursesMixin.js @@ -142,7 +142,7 @@ export default { } result.url = this.urlFor('seminar_main.php', { - auswahl: course.id, + to: course.id, redirect_to: result.url, }); }