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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
2 deletions
-
modules/docs/src/Volo.Docs.Domain/Volo/Docs/GitHub/Documents/GithubDocumentStore.cs
|
|
@ -206,7 +206,8 @@ namespace Volo.Docs.GitHub.Documents |
|
|
{ |
|
|
{ |
|
|
return rootUrl |
|
|
return rootUrl |
|
|
.Replace("github.com", "raw.githubusercontent.com") |
|
|
.Replace("github.com", "raw.githubusercontent.com") |
|
|
.ReplaceFirst("/tree/", "/"); |
|
|
.ReplaceFirst("/tree/", "/") |
|
|
|
|
|
.EnsureEndsWith('/'); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|