navigate()

Navigates to a page reference programmatically.

Method InputTypeRequired/OptionalDescription
contextStringRequiredThe ID of the parent router container nearest to the component that's generating a URL. A ContextId is an opaque value that you get from the NavigationContext wire.
pageReferenceStringRequiredThe PageReference value for which to generate a URL.
replaceBooleanOptionalIf set to true, navigate() replaces the current history entry with the location passed in the method parameters.
  • None

See Also