redirect
Starts navigation to the supplied URL and optionally avoids pushing browser history.
Table of contents
Category
Value
Import
jsimport { redirect } from "valyrian.js/router";Public signature
ts(url: string, parentComponent?: Component | POJOComponent | VnodeComponentInterface, preventPushState?: boolean): Promise<string | void>Parameters
tsurl: string, parentComponent?: Component | POJOComponent | VnodeComponentInterface, preventPushState?: booleanResult
tsPromise<string | void>