Skip to main content
Use this API to close the current page and open a new page. Unlike my.navigateTo, the current page is removed from the page stack, so users cannot navigate back to it.

Parameters

Code Example

Basic Usage

With Query Parameters

With Callbacks

Use Cases

Important Notes

  • Cannot redirect to tab bar pages (use my.switchTab instead)
  • The current page is closed and removed from the page stack
  • Users cannot navigate back to the closed page

Differences from Other Navigation APIs

my.navigateTo

Navigate keeping current page

my.reLaunch

Close all and open new page