Skip to Main Content

Remove link from Breadcrumb entry

By default, Apex turns all Parent entries in a Breadcrumb into a link - even if you set the entry to have No Target.
I expected the No Target to be enough to remove the "a href" link, but alas.

This can be fixed by a Dynamic Action.
A bit of JavaScript changes the "a href" to a "span", recreating/preserving the original class and text.
I got the idea here: https://stackoverflow.com/questions/65833588/oracle-apex-create-read-only-breadcrumb-entry but I changed it quite bit to make it more universal.

The two example Breadcrumbs A and B are basically the same, except that Breadcrumb B is changed by the Dynamic Action.
Hover over the two Parent Entries in the Breadcrumbs above to see the difference.

The resulting html for the two breadcrumbs looks like this:

Code

Region

Identification
Sequence
Title
Type
Source
Breadcrumb

Region

Identification
Sequence
Title
Type
Source
Breadcrumb

Breadcrumb

Breadcrumb
Name
Breadcrumb Entry
Page
Short Name

Breadcrumb

Breadcrumb
Name
Breadcrumb Entry
Page
Parent Entry
Short Name
Target
URL

Breadcrumb

Breadcrumb
Name
Breadcrumb Entry
Page
Short Name

Breadcrumb

Breadcrumb
Name
Breadcrumb Entry
Page
Parent Entry
Short Name
Target
URL

Dynamic Action

Identification
Name
Execution Options
Sequence
When
Event
Advanced
Event Scope
True Action
Identification
Action
Settings
Code
Execution Options
Sequence
Fire On Initialization