slachiewicz opened a new issue, #758: URL: https://github.com/apache/maven-doxia-sitetools/issues/758
With `SiteRenderingContext.setDeriveBreadcrumbsFromMenu(true)` (2.2.0, #684 and #730), the menu itself is added to the trail as a crumb with a name and no `href` ([`MenuBreadcrumbs.java:63`](https://github.com/apache/maven-doxia-sitetools/blob/master/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/MenuBreadcrumbs.java#L63)). Fluido renders breadcrumbs with `#link( $item $null false "a" "always" )`, which turns an empty href into a link to the site root, so the menu name links to the home page. Given this menu, with menu-derived breadcrumbs switched on: ```xml <menu name="Documentation"> <item name="Guides" href="guides/index.html"> <item name="Usage Guide" href="guides/usage.html"/> </item> </menu> ``` `guides/usage.html` renders: ```html <li><a href="../">Documentation</a><span class="divider">/</span></li> <li><a href="../guides/index.html">Guides</a><span class="divider">/</span></li> <li class="active">Usage</li> ``` Proposed fix: give the menu crumb the `href` of the menu's first item that has one, and leave the menu out of the trail when no item has an `href`. Changing the skin instead would also change declared breadcrumbs that rely on an empty `href` linking to the root. The feature is opt-in and no released Maven Site Plugin switches it on yet (apache/maven-site-plugin#1368 adds the parameter), so a fix in 2.2.1 reaches users before the plugin does. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
