Skip to content

Commit

Permalink
Fixed redirecturl, #961
Browse files Browse the repository at this point in the history
  • Loading branch information
RicoSuter committed Dec 6, 2017
1 parent 3c57bbe commit 73bef6b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/NSwag.AspNet.Owin/SwaggerUi3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
var ui = SwaggerUIBundle({
url: url,
validatorUrl: {ValidatorUrl},
oauth2RedirectUrl: {RedirectUrl},
oauth2RedirectUrl: "{RedirectUrl}",
docExpansion: "{DocExpansion}",

dom_id: '#swagger-ui',
Expand Down
2 changes: 1 addition & 1 deletion src/NSwag.AspNetCore/SwaggerUi3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
var ui = SwaggerUIBundle({
url: url,
validatorUrl: {ValidatorUrl},
oauth2RedirectUrl: {RedirectUrl},
oauth2RedirectUrl: "{RedirectUrl}",
docExpansion: "{DocExpansion}",

dom_id: '#swagger-ui',
Expand Down
2 changes: 1 addition & 1 deletion src/NSwag.AspNetCore/SwaggerUi3Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class SwaggerUi3Settings : SwaggerUiSettingsBase
public string DocExpansion { get; set; } = "none";

/// <summary>Gets or sets the server URL.</summary>
public string ServerUrl { get; set; }
public string ServerUrl { get; set; } = "";

internal override string TransformHtml(string html)
{
Expand Down

0 comments on commit 73bef6b

Please sign in to comment.