- 🇬🇧United Kingdom mike-kelly
This wasn't working for me... the issue was that the truncation was not applied when using the current page title token in the breadcrumb.
See attached patch for fix.
The current page title itself is not truncated when selecting "Truncate the page's title to a maximum number."
Also I would like to suggest a wording revision changing this to: "Truncate the page's title to a maximum length.". If this should be a separate issue let me know.
* Enable the option "Truncate the page's title to a maximum number." and choose a short length with or without elipsis'.
* Also choose the option: "Include the current page as a segment in the breadcrumb"
* Create a node with a long title
* Note that the current page title is not shortened
Use the truncator function in the code segment below which seems to handle the current page title.
elseif ($route_match->getRouteObject()) {
$url = Url::fromRouteMatch($route_match);
if ($this->config->get(EasyBreadcrumbConstants::ABSOLUTE_PATHS)) {
$url->setOption('absolute', TRUE);
}
$links[] = new Link($title, $url);
}
* Provide patch
* Update tests
None
None
None
Fixed
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This wasn't working for me... the issue was that the truncation was not applied when using the current page title token in the breadcrumb.
See attached patch for fix.