Thank you!
I have looked at that PR, and don't think that will fix the Navigation issue. As you can see here: https://github.com/abpframework/abp/blob/6ad1b86220d39fd0159e5840985098cb1301fa73/modules/docs/src/Volo.Docs.Web/Pages/Documents/Index.cshtml#L34
<h1>@L["Projects"]</h1>
<p>
<ul style="list-style-type: upper-roman;">
@foreach (var project in Model.Projects)
{
<li>
<h3>
<a href="@(Model.DocumentsUrlPrefix + project.ShortName)">
@project.Name
</a>
</h3>
</li>
}
</ul>
</p>
Projects should naviagte to /Documents/Project
but actually it navigates to /Project
The issue is with Model.DocumentsUrlPrefix
, as it is not being set
Adding following line in this file should fix the problem: https://github.com/abpframework/abp/blob/6ad1b86220d39fd0159e5840985098cb1301fa73/modules/docs/src/Volo.Docs.Web/Pages/Documents/Index.cshtml.cs#L28
public virtual async Task<IActionResult> OnGetAsync()
{
DocumentsUrlPrefix = _uiOptions.RoutePrefix; // Add this line
if (_uiOptions.SingleProjectMode.Enable)
{
return Redirect($"/Documents/Project/Index?version={DocsAppConsts.Latest}");
}
...
}
I looked at the Docs code of the module https://github.com/abpframework/abp/blob/dev/modules/docs/src/Volo.Docs.Web/Pages/Documents/Index.cshtml.cs There in DocumentsUrlPrefix { get; set; } the value is not set anywhere.
Hi, our project is multi project. My problem is only with navigation. The root path of Documents module is: host/documents. When I go to the Management documentation the navigation should be: host/documents/en/management/index, but when I click to the Management, navigation is: host/management. When I manually type host/documents/en/management/index Management documentation is opens. Thank you!
Hello! I have a problem with navigation in the documentation. I created an md file with documentation and added navigation for it to the navigation json file. But when I want to go to the documentation of my module! an empty page opens:
Documents disappears in the navigation and just management is written. But if I manually add Documents to the navigation, this page opens:
Thanks in advance!