redirectTo
Redirect to a new page.
Parameters
interface Data {
page: string;
title?: string;
}
Name | Type | Required | Default | Description |
---|---|---|---|---|
page | number | Yes | Path of the redirect page | |
title | string | No | Text for the navigation bar |
Example
import { redirectTo } from "minip-bridge";
redirectTo({
page: "index.html?page=redirect",
title: "Redirect",
});