Skip to content
Snippets Groups Projects
Commit 5cf3c6ed authored by Ron Lucke's avatar Ron Lucke Committed by Elmar Ludwig
Browse files

fixes #279

Closes #279
parent 2b8fae82
No related branches found
No related tags found
No related merge requests found
......@@ -67,13 +67,16 @@ const mountApp = (STUDIP, createApp, element) => {
},
];
const base = new URL(
let base = new URL(
STUDIP.URLHelper.parameters.cid
? STUDIP.URLHelper.getURL('dispatch.php/course/courseware', { cid: STUDIP.URLHelper.parameters.cid }, true)
: STUDIP.URLHelper.getURL('dispatch.php/contents/courseware/courseware')
);
if (entry_type === 'courses') {
base.search += '&';
}
const router = new VueRouter({
base: `${base.pathname}${base.search}&`,
base: `${base.pathname}${base.search}`,
routes,
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment