diff --git a/src/NSwag.AspNet.Owin/ReDoc/index.html b/src/NSwag.AspNet.Owin/ReDoc/index.html
index 971dcd6331..6607b3e846 100644
--- a/src/NSwag.AspNet.Owin/ReDoc/index.html
+++ b/src/NSwag.AspNet.Owin/ReDoc/index.html
@@ -1,7 +1,7 @@
- ReDoc
+ {DocumentTitle}
diff --git a/src/NSwag.AspNetCore/ReDoc/index.html b/src/NSwag.AspNetCore/ReDoc/index.html
index 6b9fc606be..538d203e62 100644
--- a/src/NSwag.AspNetCore/ReDoc/index.html
+++ b/src/NSwag.AspNetCore/ReDoc/index.html
@@ -1,7 +1,7 @@
- ReDoc
+ {DocumentTitle}
diff --git a/src/NSwag.AspNetCore/ReDocSettings.cs b/src/NSwag.AspNetCore/ReDocSettings.cs
index 938be6e972..78d541c162 100644
--- a/src/NSwag.AspNetCore/ReDocSettings.cs
+++ b/src/NSwag.AspNetCore/ReDocSettings.cs
@@ -31,6 +31,11 @@ public class ReDocSettings : SwaggerUiSettingsBase
/// Gets the additional ReDoc settings.
public IDictionary AdditionalSettings { get; } = new Dictionary();
+ ///
+ /// Gets or sets a title for the ReDoc page.
+ ///
+ public string DocumentTitle { get; set; } = "ReDoc";
+
#if AspNetOwin
internal override Task TransformHtmlAsync(string html, IOwinRequest request, CancellationToken cancellationToken)
#else
@@ -40,6 +45,7 @@ internal override Task TransformHtmlAsync(string html, HttpRequest reque
html = html.Replace("{AdditionalSettings}", GenerateAdditionalSettings(AdditionalSettings));
html = html.Replace("{CustomStyle}", GetCustomStyleHtml(request));
html = html.Replace("{CustomScript}", GetCustomScriptHtml(request));
+ html = html.Replace("{DocumentTitle}", DocumentTitle);
return Task.FromResult(html);
}
}