abp icon indicating copy to clipboard operation
abp copied to clipboard

Angular breadcrumbs aren't links

Open yonguelink opened this issue 8 months ago • 0 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Description

Breadcrumbs should always be clickable to redirect to the page they represent.

However the segments are stripped of their path property so the template used to render each breadcrumb will always be the non-link version.

Reproduction Steps

The bug is present in any page that uses ABP (that doesn't replace the breadcrumb component). And example can be found in the demo - The breadscrumb correctly shows Sass & Editions, but both aren't links to their respective pages (yet the cursor is set to mode pointer as if it was clickable)

Image

Expected behavior

Clicking on breadcrumbs should trigger navigation to that breadcrumb's page.

Actual behavior

Clicking does nothing.

Regression?

I don't it's a regression - the breadcrumb component was mostly created in PR 10203 four years ago and hasn't changed since.

Known Workarounds

Overwrite the breadcrump component to do our own logic? I guess?

Version

9.1.0

User Interface

Angular

Database Provider

EF Core (Default)

Tiered or separate authentication server

None (Default)

Operation System

Linux

Other information

I think only removing the destructuration of the property path in the breadcrumb.component.ts would fix the situation.

yonguelink avatar May 20 '25 17:05 yonguelink