Generate the correct editLink value

pull/4515/head
liangshiwei 5 years ago
parent 78c913044b
commit 4f86aff010

@ -38,7 +38,7 @@ namespace Volo.Docs.GitHub.Documents
var rawDocumentUrl = rawRootUrl + documentName;
var isNavigationDocument = documentName == project.NavigationDocumentName;
var isParameterDocument = documentName == project.ParametersDocumentName;
var editLink = rootUrl.ReplaceFirst("/tree/", "/blob/") + languageCode + "/" + documentName;
var editLink = rootUrl.ReplaceFirst("/tree/", "/blob/").EnsureEndsWith('/') + languageCode + "/" + documentName;
var localDirectory = "";
var fileName = documentName;

Loading…
Cancel
Save