dotnet / dotnet/docfx

tags anchors are generated the same for restapi json

Open
#5,774 0 comments 0 reactions 0 assignees View on GitHub
rest-api
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 11m
Merged PRs (30d)
10

Description

**Operation System**: (`Windows`)

**DocFX Version Used**: 2.52

**Template used**: (`default`)

**Steps to Reproduce**:

1. get attached test.json file
2. generate docfx.json and add `test.json` to the `files`
3. build the doc
4. open http://localhost:8080/restapi/test.html

**Expected Behavior**:
IN THIS ARTICLE right column should have tags generated with unique ids (including tag name I suppose) the same as anchors in the document
AddressApi - http://localhost:8080/restapi/test.html#localhost_64102_testapi_v1_Test_v1_AddressApi
ClientApi - http://localhost:8080/restapi/test.html#localhost_64102_testapi_v1_Test_v1_ClientApi

**Actual Behavior**:
tag name is not included into generated anchor address
AddressApi - http://localhost:8080/restapi/test.html#localhost_64102_testapi_v1_Test_v1
ClientApi - http://localhost:8080/restapi/test.html#localhost_64102_testapi_v1_Test_v1

this causes IN THIS ARTICLE links to point to the same anchor name

[test.json.zip](https://github.com/dotnet/docfx/files/4476390/test.json.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.