Matterway
    Preparing search index...

    Function navigate

    • Experimental

      Navigates to a specified URL based on the provided options.

      Parameters

      • ctx: Context

        The context in which the navigation is performed.

      • options: NavigateOptions

        The options for GoToOptions.

        • createPage

          If true, a new page will be created.

        • background

          If true and createPage is also true, the new page will be created in the background.

        • url

          The URL to navigate to.

      Returns Promise<void | Context>

      A promise that resolves when the navigation is complete.

      await navigate(ctx, { url: 'https://example.com', createPage: true, background: false });