RedirectsPlugin class

A StaticShockPlugin that configures HTML redirects for pages that want redirects.

To configure redirects, add the redirectFrom property to a page.

Example: A single old URL:

---
redirectFrom: /my/old/url/page.html
---

Example: Multiple old URLs:

---
redirectFrom:
  - /my/old/url/1/page.html
  - /my/old/url/2/page.html
---
Implemented types

Constructors

RedirectsPlugin()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

configure(StaticShockPipeline pipeline, StaticShockPipelineContext context) FutureOr<void>
Configures the pipeline to add new features that are associated with this plugin.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited