Skip to content
Snippets Groups Projects
Commit e91bdb5a authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

Resolve "VA lässt sich aus Übersicht nicht merh öffnen"

Closes #5013

Merge request studip/studip!3758
parent e9666d6f
Branches
Tags
No related merge requests found
......@@ -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));
......@@ -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>
......
......@@ -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')) }}
......
......@@ -142,7 +142,7 @@ export default {
}
result.url = this.urlFor('seminar_main.php', {
auswahl: course.id,
to: course.id,
redirect_to: result.url,
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment