From 28612a11bbbf55a20af001746101e6c19f372e6c Mon Sep 17 00:00:00 2001 From: NishaSharma14 Date: Tue, 30 Jan 2024 13:54:08 +0100 Subject: [PATCH] fix: fixes #1026 --- resources/js/Mixins/Global.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/resources/js/Mixins/Global.js b/resources/js/Mixins/Global.js index 92ee4e40..c2fb46a3 100644 --- a/resources/js/Mixins/Global.js +++ b/resources/js/Mixins/Global.js @@ -216,7 +216,11 @@ export default { extractQueryParam(query) { if (query.indexOf("http") > -1) { var url = new URL(query); - query = url.pathname.replace("/", ""); + if(query.indexOf("dois") > -1){ + query = url.pathname.replace("/dois/", ""); + } else { + query = url.pathname.replace("/", ""); + } } return query.trim(); }, @@ -324,7 +328,11 @@ export default { extractQueryParam(query) { if (query.indexOf("http") > -1) { var url = new URL(query); - query = url.pathname.replace("/", ""); + if(query.indexOf("dois") > -1){ + query = url.pathname.replace("/dois/", ""); + } else { + query = url.pathname.replace("/", ""); + } } return query.trim(); },