Definition
Assembly: Mintlify.Core.dll Namespace: Mintlify.Core.Models Inheritance: System.ObjectSyntax
Summary
Represents a URL redirect configuration for the Mintlify documentation site.Remarks
This configuration defines how requests to specific paths should be redirected to different URLs, useful for maintaining backward compatibility or reorganizing content.Constructors
.ctor
Syntax
Properties
Destination
Gets or sets the destination path where requests should be redirected.Syntax
Property Value
Type:string
Remarks
Specifies where users should be redirected when they visit the source path. Can be a relative path (e.g., “/new-page”) or an absolute URL (e.g., “https://example.com/page”). This is a required field.Permanent
Gets or sets whether the redirect is permanent (301) or temporary (302).Syntax
Property Value
Type:System.Nullable<bool>
Remarks
When true, returns a 301 (Moved Permanently) status code, indicating to search engines that the move is permanent. When false or not specified, returns a 302 (Found) status code for temporary redirects. Permanent redirects are better for SEO when content has permanently moved.Source
Gets or sets the source path that should be redirected.Syntax
Property Value
Type:string