From d0516ba7244ebe315284328f1b8c22f03662fd45 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Fri, 22 Mar 2024 13:23:07 -0500 Subject: [PATCH] LP: Use EmptyLayout for learn paths only when the action is view --- assets/vue/App.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/vue/App.vue b/assets/vue/App.vue index a1e6bf7d82..931e9253cb 100644 --- a/assets/vue/App.vue +++ b/assets/vue/App.vue @@ -79,7 +79,10 @@ const layout = computed(() => { const queryParams = new URLSearchParams(window.location.search) - if (queryParams.has("lp_id") || (queryParams.has("origin") && "learnpath" === queryParams.get("origin"))) { + if ( + (queryParams.has("lp_id") && "view" === queryParams.get("action")) || + (queryParams.has("origin") && "learnpath" === queryParams.get("origin")) + ) { return "EmptyLayout" }