diff --git a/README.md b/README.md index 02c4aa8d4..08a31a0de 100644 --- a/README.md +++ b/README.md @@ -960,13 +960,29 @@ Examples: ```json { "type": "keyValue", - "key": "Last purchase ID", + "key": "Purchase", "value": "123", - "url": "browser/_User", + "url": "browser/Purchase", "isRelativeUrl": true } ``` +To navigate to a specific object using a relative URL, the query parameters must be URL encoded: + +```js +const objectId = 'abc123'; +const className = 'Purchase'; +const query = [{ field: 'objectId', constraint: 'eq', compareTo: objectId }]; +const url = `browser/Purchase?filters=${JSON.stringify(query)}`; +const item = { + type: 'keyValue', + key: 'Purchase', + value: objectId, + url, + isRelativeUrl: true +} +``` + #### Table Item A table with columns and rows to display data in a structured format. @@ -1109,7 +1125,7 @@ Example: ```json { "type": "panel", - "text": "Purchase History", + "title": "Purchase History", "cloudCodeFunction": "getUserPurchaseHistory" } ```