After further investigation it seems that the "section_library" module needed to be updated to the latest version.
You may close this ticket, thanks for following up!
wouter.h β created an issue.
wouter.h β created an issue.
wouter.h β created an issue.
I see this issue is already fixed in the latest version.
wouter.h β created an issue.
wouter.h β created an issue.
After installation I get the following error on Drupal 10.3.8;
Twig\Error\LoaderError: Template βnavigation:toolbar-buttonβ is not defined in βmodules/contrib/navigation_extra/templates/navigation-extra-menu.html.twigβ at line 45. in Twig\Loader\ChainLoader->getCacheKey() (line 111 of /var/www/html/vendor/twig/twig/src/Loader/ChainLoader.php).
wouter.h β created an issue.
I've included the link through the merge request.
wouter.h β created an issue.
My solution ensures that in the "strReplaceFirst" function it specifically searches for a URL alias that starts with a part instead of the first occurring part in the URL.
private function strReplaceFirst(string $search, string $replace, string $subject) {
if(str_starts_with($subject, $search)) {
$pos = strpos($subject, $search);
if ($pos !== false) {
return substr_replace($subject, $replace, $pos, strlen($search));
}
}
return $subject;
}
After checking, I notice that it no longer replaces the news part of the "facets_pretty_paths" module, but the effective first part of the URL remains untranslated.
"/search/type/news" should be "/search/type/news"
After removing the "break;" in the "getOutboundPath" function everything works as expected
wouter.h β created an issue.
wouter.h β created an issue.
Changes in the pull request.
wouter.h β created an issue.
This patch contains the existing patch + update the info.yml file for D10 compatibility.
wouter.h β created an issue.
Feedback given!