Skip to content

Commit

Permalink
fix: fixes #1026
Browse files Browse the repository at this point in the history
  • Loading branch information
NishaSharma14 committed Jan 30, 2024
1 parent cd7f3ad commit 28612a1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions resources/js/Mixins/Global.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
},
Expand Down Expand Up @@ -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();
},
Expand Down

0 comments on commit 28612a1

Please sign in to comment.