From 92a71d5fa3c8b506685f2d2408b98a3d2597b0c4 Mon Sep 17 00:00:00 2001 From: Emerson <58860863+Emerson1337@users.noreply.github.com> Date: Fri, 30 Dec 2022 15:45:50 -0300 Subject: [PATCH] Fix url generator to search by filter There are an error when the function is called. The new URL returned it's like: https://prnt.sc/k9LdsvKYPo2s With this refactor the functionality works fine! --- dist/linkedin/linkedin.global.page.service.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/linkedin/linkedin.global.page.service.js b/dist/linkedin/linkedin.global.page.service.js index 5d13317..cbd335d 100644 --- a/dist/linkedin/linkedin.global.page.service.js +++ b/dist/linkedin/linkedin.global.page.service.js @@ -46,9 +46,9 @@ class LinkedinGlobalPageService extends linkedin_abstract_service_1.LinkedinAbst if (parseQuery === null || parseQuery === void 0 ? void 0 : parseQuery.viewAllFilters) { parseQuery === null || parseQuery === void 0 ? void 0 : parseQuery.viewAllFilters = "false"; } - const newUrl = (0, querystring_1.stringify)(parseQuery, onlyQuery.origin + + const newUrl = onlyQuery.origin + onlyQuery.pathname + - (url.indexOf("#") > -1 ? "#" : "?")); + (url.indexOf("#") > -1 ? "#" : "?") + querystring_1.stringify(parseQuery); const info = await (url.indexOf("/sales/") > -1 ? salesPage : normalPage).pagesTask(page, newUrl); @@ -78,4 +78,4 @@ class LinkedinGlobalPageService extends linkedin_abstract_service_1.LinkedinAbst } } exports.LinkedinGlobalPageService = LinkedinGlobalPageService; -//# sourceMappingURL=linkedin.global.page.service.js.map \ No newline at end of file +//# sourceMappingURL=linkedin.global.page.service.js.map