Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Broken hrefs with SeparatePages when member names collide #10125

Open
frarees opened this issue Jul 23, 2024 · 0 comments
Open

[Bug] Broken hrefs with SeparatePages when member names collide #10125

frarees opened this issue Jul 23, 2024 · 0 comments
Labels
bug A bug to fix dotnet Generate .NET API reference docs

Comments

@frarees
Copy link
Contributor

frarees commented Jul 23, 2024

Given:

namespace MyNamespace
{
    public enum MyOutterEnum
    {
    }

    public class MyClass
    {
        public enum MyEnum
        {
        }

        public enum MyEnum2
        {
        }

        public MyEnum myEnum;
        public MyEnum myOtherEnum;
        public MyEnum2 myEnumTwo;
        public MyOutterEnum myOutterEnum;
    }
}

Build the metadata using "memberLayout": "separatePages".

Notice that the generation includes:

MyNamespace.MyClass.MyEnum(Enum).html
MyNamespace.MyClass.MyEnum(Field).html

But on the pages for myEnum and myOtherEnum, the href to the return value points to:

MyNamespace.MyClass.MyEnum.html

Leading to a missing page.

Reproduced on 2.77.0.

@frarees frarees added bug A bug to fix dotnet Generate .NET API reference docs labels Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug to fix dotnet Generate .NET API reference docs
Projects
None yet
Development

No branches or pull requests

1 participant