Skip to content

Commit 12a19a8

Browse files
committed
Added details for baseParam in README
1 parent 71ae0af commit 12a19a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ Consider a normal search page with basic layout as shown in the figure below and
130130
,bannerTemp: "<a href='{{landingUrl}}'><img src='{{imageUrl}}'/></a>"
131131
,fields : ['image_url','title','brand','price','uniqueId']
132132
,searchQueryParam:"q"
133+
,retainbaseParam: false
134+
,baseParams:[]
133135
});
134136
```
135137

@@ -703,6 +705,8 @@ JSON used for this template:
703705
...
704706
```
705707
- **searchQueryParam** : searh query param name to be shown in browser url, default is "q"
708+
- **retainbaseParam** : Set this to true, if you want to retain some extra url params from the SRP
709+
- **baseParams** : Array of params which will be retained from SRP. This will come into picture only if retainbaseParam is set to true
706710
- **deferInitRender** : This is an array of library features that need to be disabled on initial load.
707711
```javascript
708712
...

0 commit comments

Comments
 (0)