Skip to content
Snippets Groups Projects
Commit 85a06aef authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fix navigation in studip tree views, fixes #4748

Closes #4748

Merge request studip/studip!3545
parent 5a30fa24
No related branches found
No related tags found
No related merge requests found
......@@ -259,9 +259,9 @@ export default {
// Update browser history.
if (pushState) {
const nodeId = node.id;
const url = STUDIP.URLHelper.getURL('', {node_id: nodeId});
window.history.pushState({nodeId}, '', url);
const url = new URL(location.href);
url.searchParams.set('node_id', node.id);
window.history.pushState({nodeId: node.id}, '', url);
}
// Update node_id for semester selector.
......
......@@ -283,9 +283,9 @@ export default {
// Update browser history.
if (pushState) {
const nodeId = node.id;
const url = STUDIP.URLHelper.getURL('', {node_id: nodeId});
window.history.pushState({nodeId}, '', url);
const url = new URL(location.href);
url.searchParams.set('node_id', node.id);
window.history.pushState({nodeId: node.id}, '', url);
}
// Update node_id for semester selector.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment