Redirect

Redirect

When a Resolver returns an instance of this class, the LinkService will perform a redirect. The current URL will be recorded, and a new lookup will be performed for the new URL.

Constructor

new Redirect(url, base, silent)

Source:
Parameters:
Name Type Description
url String | URL

The URL to redirect to.

base URL

The base URL for the redirect. Generally, this is the current URL. Used for resolving relative URLs.

silent Boolean

When set to true, the redirect won't be "counted". It won't show up on the list of visited URLs, nor will it add to the redirect chain count. For special circumstances only.

Classes

Redirect