diff --git a/resources/js/components/requests/card.vue b/resources/js/components/requests/card.vue index 4fc5a044b0..20e8a4f3e7 100644 --- a/resources/js/components/requests/card.vue +++ b/resources/js/components/requests/card.vue @@ -79,11 +79,11 @@ export default { .then(response => { this.spin = 0; let instance = response.data; + let url = '/requests'; if (this.$cookies.get("isMobile") === "true") { - window.location = "/requests/mobile/" + instance.id; - } else { - window.location = `/requests/${instance.id}?fromTriggerStartEvent=`; + url = '/requests/mobile'; } + window.location = `${url}/${instance.id}?fromTriggerStartEvent=`; }).catch((err) => { this.disabled = false; const data = err.response.data; diff --git a/resources/views/tasks/editMobile.blade.php b/resources/views/tasks/editMobile.blade.php index 56000507ca..24cb064b0f 100644 --- a/resources/views/tasks/editMobile.blade.php +++ b/resources/views/tasks/editMobile.blade.php @@ -280,7 +280,6 @@ class="card border-0" .put("tasks/" + taskId, {status:"COMPLETED", data: this.formData}) .then(() => { window.ProcessMaker.alert(message, 'success', 5, true); - window.location = "/tasks"; }) .catch(error => { // If there are errors, the user will be redirected to the request page