diff --git a/gemeinsamforschen/src/main/webapp/annotation/js/annotationScript.js b/gemeinsamforschen/src/main/webapp/annotation/js/annotationScript.js index b356093d5bbd45e5e3fadf6d79b2426fee019556..54470a0048359ab9324f489e4311aef213b834df 100644 --- a/gemeinsamforschen/src/main/webapp/annotation/js/annotationScript.js +++ b/gemeinsamforschen/src/main/webapp/annotation/js/annotationScript.js @@ -68,14 +68,14 @@ $(document).ready(function() { * continue button */ $('#btnContinue').click(function () { - location.href="give-feedback.jsp?token=" + getUserTokenFromUrl(); + location.href="../feedback/give-feedback.jsp?token=" + getUserTokenFromUrl(); }); /** * back button */ $('#btnBack').click(function () { - location.href="project-student.jsp?token=" + getUserTokenFromUrl() + "&projectId=" + getQueryVariable("projectId"); + location.href="../project-student.jsp?token=" + getUserTokenFromUrl() + "&projectId=" + getQueryVariable("projectId"); }); /** diff --git a/gemeinsamforschen/src/main/webapp/annotation/js/unstructuredAnnotation.js b/gemeinsamforschen/src/main/webapp/annotation/js/unstructuredAnnotation.js index 21e4a47aae77b6fd0203fcdb1c36e0f48ae3b23c..a8ab85a55c8050287ac9228165ec1b0538659db7 100644 --- a/gemeinsamforschen/src/main/webapp/annotation/js/unstructuredAnnotation.js +++ b/gemeinsamforschen/src/main/webapp/annotation/js/unstructuredAnnotation.js @@ -285,7 +285,7 @@ function saveButtonHandler() { $.when.apply($, promises).then(function () { // redirect user to project page after saving - location.href="project-student.jsp?token=" + getUserTokenFromUrl() + "&projectId=" + getQueryVariable("projectId"); + location.href="../project-student.jsp?token=" + getUserTokenFromUrl() + "&projectId=" + getQueryVariable("projectId"); }); // redirect user to project page after saving diff --git a/gemeinsamforschen/src/main/webapp/annotation/js/unstructuredUpload.js b/gemeinsamforschen/src/main/webapp/annotation/js/unstructuredUpload.js index 9a2aa3d411d58df36cfa95201268d5ebc36e2211..2148e5cb04d95a8280dc4af60579aa8f6bdfa2e8 100644 --- a/gemeinsamforschen/src/main/webapp/annotation/js/unstructuredUpload.js +++ b/gemeinsamforschen/src/main/webapp/annotation/js/unstructuredUpload.js @@ -37,15 +37,15 @@ $(document).ready(function() { $('#upload-textarea').val(""); // jump to previous page - window.history.back(); - //location.href="project-student.jsp?token=" + getUserTokenFromUrl() + "&projectId=" + getProjectIdFromUrl(); + //window.history.back(); + location.href="../project-student.jsp?token=" + getUserTokenFromUrl() + "&projectId=" + getQueryVariable("projectId"); } } // nothing to check else { // jump to previous page - window.history.back(); - //location.href="project-student.jsp?token=" + getUserTokenFromUrl() + "&projectId=" + getProjectIdFromUrl(); + //window.history.back(); + location.href="../project-student.jsp?token=" + getUserTokenFromUrl() + "&projectId=" + getQueryVariable("projectId"); } }); diff --git a/gemeinsamforschen/src/main/webapp/core/project-student.js b/gemeinsamforschen/src/main/webapp/core/project-student.js index 85b50ac80137b537eed4c87b5ba5702c32e9dba6..ff3a8f1e43ebb54b4eebe69f2de82258c9f3edf2 100644 --- a/gemeinsamforschen/src/main/webapp/core/project-student.js +++ b/gemeinsamforschen/src/main/webapp/core/project-student.js @@ -11,7 +11,7 @@ $(document).ready(function(){ $('.annotationview').click(function () { let fullSubmissionId = $(this).closest("li").data("fullSubmissionId"); let category = $(this).closest("li").data("category"); - location.href="annotation-document.jsp?token=" + getUserTokenFromUrl() + + location.href="/annotation/annotation-document.jsp?token=" + getUserTokenFromUrl() + "&projectId=" + getQueryVariable("projectId") + "&fullSubmissionId=" + fullSubmissionId + "&category=" + category; @@ -41,7 +41,7 @@ $(document).ready(function(){ }); $('#btnUnstructuredUpload').click(function () { - location.href="unstructured-upload.jsp?token="+getUserTokenFromUrl() + "&projectId=" + getQueryVariable("projectId"); + location.href="/annotation/upload-unstructured-annotation.jsp?token=" + getUserTokenFromUrl() + "&projectId=" + getQueryVariable("projectId"); }) $('.viewprojectstudent').click(function () {