sr-npm 1.7.162 → 1.7.164

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.162",
3
+ "version": "1.7.164",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -200,7 +200,7 @@ async function applyFilters(_$w, skipUrlUpdate = false) {
200
200
  queryParams.add({ keyWord: filter.value });
201
201
  }
202
202
  if(filter.field === 'department'){
203
- queryParams.add({ department: filter.value });
203
+ queryParams.add({ department: encodeURIComponent(filter.value) });
204
204
  }
205
205
  }
206
206
  if(filter.field === 'remote') {
@@ -259,7 +259,7 @@ async function updateCount(_$w) {
259
259
 
260
260
  async function handleDepartmentParam(_$w,department) {
261
261
  console.log("handleDepartmentParam@@@@@", department);
262
- const departmentValue = department.replace('-', ' ');
262
+ const departmentValue = decodeURIComponent(department);
263
263
 
264
264
 
265
265
 
package/pages/homePage.js CHANGED
@@ -17,7 +17,9 @@ async function homePageOnReady(_$w,thisObject) {
17
17
  $item('#teamButton').label = `View ${itemData.count} Open Positions`;
18
18
  $item('#teamButton').onClick(()=>{
19
19
  console.log("teamButton clicked@@@@@", itemData.title);
20
- const department=itemData.title.replace(' ', '-');
20
+ const department = encodeURIComponent(itemData.title);
21
+ console.log("department##########", department);
22
+
21
23
  location.to(`/positions?department=${department}`);
22
24
  });
23
25
  });