The navigate method allows your app to move the merchant to different routes within the Salla Merchant Dashboard using internal routing (SPA). This provides a fast, seamless transition without a full page reload.Usage#
Use this when you want to send the merchant to a native Salla page (like the Orders list or Store Settings).Options#
The navigate method accepts a configuration object:| Option | Type | Default | Description |
|---|
| path | string | - | The internal Salla route path. |
| state | object | {} | Optional state data for the router. |
| replace | boolean | false | If true, replaces the current history entry. |
Relative Paths: Always use absolute paths starting with / for consistency (e.g., /orders, /products/category/1).
Use replace for Redirects: If you are automatically redirecting a user (e.g., after an action), use replace: true so the "Back" button doesn't trap them in a loop.
Modified at 2026-02-02 10:34:37