statamic / docs

Statamic Documentation
https://statamic.dev
Other
115 stars 382 forks source link

Erroneous navigation items in docs #1526

Open sjclark opened 2 hours ago

sjclark commented 2 hours ago

Multiple pages within the Documentation seem to have erroneous links and titles to pages in other sections: https://statamic.dev/extending/control-panel ("Overview") Screenshot 2024-11-02 at 11 39 59 am And http://statamic-docs.test/extending/javascript ("API Overview") Screenshot 2024-11-02 at 11 59 55 am

Having an explore on a local copy to try figure it out, but Erin suggested filing an issue 👍

sjclark commented 2 hours ago

Possible theres more than one issue going on here, the preferences page seems to get a nav_title from somewhere else; Screenshot 2024-11-02 at 12 10 04 pm (the page itself has no nav_title set)


Actually these seem to be overtly linked in the nav tree 🤷 : https://github.com/statamic/docs/blob/c87db2a20d749a32291d5cfa96bd4db296a5c450/content/trees/navigation/extending_docs.yaml#L102-L105 https://github.com/statamic/docs/blob/c87db2a20d749a32291d5cfa96bd4db296a5c450/content/trees/navigation/extending_docs.yaml#L40-L43 Also of note, these nav items only show when the overview page is selected for the respective sections. Visiting any other nav item within that section hides these items.