Skip to main content

bn.updatePageUrl

updatePageUrl(params): void

description update the url info on the current page for the native.

example

bn.updatePageUrl({
path: '/pages/index/index',
query: encodeURIComponent('a=1&b=2'),
// Starting from APP 3.1.0, the developer can call bn.updatePageUrl({path:"", query: "", target:"deeplink"})
// to update the path and query of deeplink.
target: 'deeplink',
})

Parameters

NameType
paramsCmdSetUpdatePageQueryOptionsType

Returns

void

CmdSetUpdatePageQueryOptionsType

Ƭ CmdSetUpdatePageQueryOptionsType: Object

Type declaration

NameType
pathstring
query?undefined | string
target?undefined | string