Merge pull request #4045 from abpframework/maliming/docs-pull-patch

Ignore external link.
pull/4164/head
Halil İbrahim Kalkan 5 years ago committed by GitHub
commit a1a4391bc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -90,6 +90,12 @@ namespace Volo.Docs.Admin.Documents
var documents = new List<Document>();
foreach (var leaf in leafs)
{
if (leaf.Path.StartsWith("http://", StringComparison.OrdinalIgnoreCase) ||
leaf.Path.StartsWith("https://", StringComparison.OrdinalIgnoreCase))
{
continue;
}
var sourceDocument =
await source.GetDocumentAsync(project, leaf.Path, input.LanguageCode, input.Version);
documents.Add(sourceDocument);

Loading…
Cancel
Save