RedirectConfig

Represents a URL redirect configuration for the Mintlify documentation site.

Syntax

public class RedirectConfig

Inheritance

Properties

Destination

[JsonPropertyName("destination")]
public string Destination { get; set; }
Gets or sets the destination path where requests should be redirected.

Returns

string

Permanent

[JsonPropertyName("permanent")]
public bool? Permanent { get; set; }
Gets or sets whether the redirect is permanent (301) or temporary (302).

Returns

bool?

Source

[JsonPropertyName("source")]
public string Source { get; set; }
Gets or sets the source path that should be redirected.

Returns

string

Remarks

This configuration defines how requests to specific paths should be redirected to different URLs, useful for maintaining backward compatibility or reorganizing content.