Skip to content

Commit

Permalink
Merge pull request #663 from havit/feature/PropertyLinksLeadToTypeDef…
Browse files Browse the repository at this point in the history
…initionsInsteadOfComponents

[docs] Link to component property leads to type definition instead of component #657
  • Loading branch information
hakenr authored Nov 25, 2023
2 parents c1bbfde + 0f3c95f commit 14d1250
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Havit.Blazor.Documentation/Model/MemberModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ private string GenerateHavitDocumentationLink(string[] splitLink)
}
}

isComponent = ApiTypeHelper.GetType(splitLink[^2])?.IsSubclassOf(typeof(ComponentBase)) ?? false;
string className = GetFullGenericTypeName(splitLink[^2]);
isComponent = ApiTypeHelper.GetType(className)?.IsSubclassOf(typeof(ComponentBase)) ?? false;
}
else
{
Expand Down

0 comments on commit 14d1250

Please sign in to comment.