Browse Source

Merge pull request #1040 from Webdiyer/master

Ensure GitHub root url ends with forward slash in docs module
pull/1041/head
maliming 8 years ago
committed by GitHub
parent
commit
bd14f41fcf
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      modules/docs/src/Volo.Docs.Domain/Volo/Docs/GitHub/Documents/GithubDocumentStore.cs

5
modules/docs/src/Volo.Docs.Domain/Volo/Docs/GitHub/Documents/GithubDocumentStore.cs

@ -206,7 +206,8 @@ namespace Volo.Docs.GitHub.Documents
{
return rootUrl
.Replace("github.com", "raw.githubusercontent.com")
.ReplaceFirst("/tree/", "/");
.ReplaceFirst("/tree/", "/")
.EnsureEndsWith('/');
}
}
}
}

Loading…
Cancel
Save