Redirect.svelte

view source

Declarations
#

Redirect
#

Redirect.svelte view source

accepts children

import Redirect from '@fuzdev/fuz_ui/Redirect.svelte';

host?

The target host to redirect to. Defaults to '' (relative URL).

type string
optional default ''

path?

The target path to redirect to. Defaults to the current location.pathname.

type string
optional default page.url.pathname

auto?

Should the redirect happen automatically without user input? Defaults to true.

type boolean
optional default true

children?

type Snippet<[url: string]>
optional
snippet parameters
url string