Parameters
Code Example
Use Cases
- Reset app state after logout
- Return to home after completing a flow
- Clear navigation history
Related APIs
my.redirectTo
Replace current page
my.switchTab
Navigate to tab page
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Close all pages and open a new page.
| Property | Type | Required | Description |
|---|---|---|---|
| url | String | Yes | Page path with optional query parameters |
| success | Function | No | Callback on success |
| fail | Function | No | Callback on failure |
| complete | Function | No | Callback that always executes |
my.reLaunch({
url: 'pages/home/home'
});
// With query parameters
my.reLaunch({
url: 'pages/home/home?from=logout'
});