<nolink> items being output as link in breadcrumbs

Created on 16 August 2011, about 14 years ago
Updated 17 July 2025, about 2 months ago

Hi all, not sure if this would be a bug report or support request????

I'm using special menu items and have it working properly with my menu links so that when setting the path as "<nolink>" it spits out plain text in the menu instead of a link. Custom breadcrumbs sees it as a valid path however.

My php is bad, I'm a newbie but I've been playing with replacing this in line 908:

if (isset($link['href'])) {
        // Pass in $link as $options, they share the same keys.
        $output .= l($link['title'], $link['href'], $link);
      }

with

if (isset($link['href'])) {
	 if ($link['href'] == '<nolink>') {
	     $output .= '<span' . $span_attributes . '>' . $link['title'] . '</span>';
	 }
	 else
        // Pass in $link as $options, they share the same keys.
        $output .= l($link['title'], $link['href'], $link);
      }

Any pointers? Am I even close?

πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rumblewand

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024