sr-npm 1.7.507 → 1.7.508
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pages/positionPage.js +3 -3
package/package.json
CHANGED
package/pages/positionPage.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const {
|
|
2
2
|
htmlToText
|
|
3
3
|
} = require('../public/utils');
|
|
4
|
-
const {
|
|
4
|
+
const { query,queryParams } = require("wix-location-frontend");
|
|
5
5
|
|
|
6
6
|
async function positionPageOnReady(_$w) {
|
|
7
7
|
|
|
@@ -39,7 +39,7 @@ const {
|
|
|
39
39
|
|
|
40
40
|
function handleApplyButton(_$w,item) {
|
|
41
41
|
console.log("item is: ", item);
|
|
42
|
-
console.log(
|
|
42
|
+
console.log(query);
|
|
43
43
|
const applyLinkWithQueryParams=appendQueryParams(item.applyLink);
|
|
44
44
|
console.log("applyLinkWithQueryParams is: ", applyLinkWithQueryParams);
|
|
45
45
|
|
|
@@ -48,7 +48,7 @@ const {
|
|
|
48
48
|
|
|
49
49
|
function appendQueryParams(url){
|
|
50
50
|
const urlObj=new URL(url);
|
|
51
|
-
Object.entries(
|
|
51
|
+
Object.entries(query).forEach(([key,value])=>{
|
|
52
52
|
urlObj.searchParams.set(key,value);
|
|
53
53
|
});
|
|
54
54
|
console.log("urlObj is: ", urlObj);
|