Account created on 5 January 2017, over 8 years ago
#

Merge Requests

Recent comments

πŸ‡§πŸ‡ͺBelgium wouter.h

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!

πŸ‡§πŸ‡ͺBelgium wouter.h

I see this issue is already fixed in the latest version.

πŸ‡§πŸ‡ͺBelgium wouter.h

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).

πŸ‡§πŸ‡ͺBelgium wouter.h

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

πŸ‡§πŸ‡ͺBelgium wouter.h

This patch contains the existing patch + update the info.yml file for D10 compatibility.

πŸ‡§πŸ‡ͺBelgium wouter.h

Feedback given!

Production build 0.71.5 2024