Left Nav and Breadcrumbs behaviour when using Reference TOCs (modern template, DocFx 2.75.3) #9859
Replies: 3 comments 1 reply
-
If noone has any comment on this, I will log it as a bug as the behaviour for this case (using Reference TOCs) seems inconsistent with the other cases (Nested TOCs and direct links to .md files). |
Beta Was this translation helpful? Give feedback.
-
Is there any reason it can't use As far as tested on my environment. |
Beta Was this translation helpful? Give feedback.
-
Using Nested TOC for both elements is suggested as temporary workaround. I agree with your opinion. that current docfx behaviors of As far as I knows.
And
|
Beta Was this translation helpful? Give feedback.
-
I don't know if this is by design or a bug ... for me it is an issue, but maybe there is a reason it works like this, so can anyone shed light?
The issue: if a TOC.yml contains references to sub-folder contents via Reference TOCs, then the behaviour of the Left Nav and Breadcrumbs is as follows:
Example:
The TOC.yml in the root of my site contains 2 links (this defines the top nav bar ... these are Reference TOCs as per the recommendation but these are not the links with the issue I am talking about (read on ...):
The TOC.yml in the InternalSystems sub-folder contains 2 links (this defines the left nav when under Internal Systems); the 1st uses a Nested TOC and the 2nd uses a Reference TOC:
If I click on Intranet in the left nav, the left nav expands to show the links in Intranet/TOC.yml (preserving the parent and sibling links). When navigating to any of these, the left nav is preserved and the breadbrumbs show the full path to the current page, e.g.: Internal Systems > Intranet > Development > DocFx
However, if I click on Gemini in the left nav, I navigate to the 1st navigable page under Gemini, and the left nav only shows the the links in Gemini/TOC.yml (I would prefer it to preserve the the parent and sibling links). At this point the Breadcrumbs shows only Internal Systems (I would expect it to show Internal Systems > Gemini). Then, if I navigate to any pages in sub-folders below Gemini, breadbrumbs omit Gemini from the path to the current page, e.g.: Internal Systems > Deployment > Custom Applications (this is an issue because the use now has lost the context for where they are).
Beta Was this translation helpful? Give feedback.
All reactions