Skip to content

Bugfix: Repeated breadcrumb issue#60

Open
cfoss-coveo wants to merge 3 commits intoServiceCanada:mainfrom
cfoss-coveo:bugfix/427242-sr-604-canadaca-breadcrumb-issue
Open

Bugfix: Repeated breadcrumb issue#60
cfoss-coveo wants to merge 3 commits intoServiceCanada:mainfrom
cfoss-coveo:bugfix/427242-sr-604-canadaca-breadcrumb-issue

Conversation

@cfoss-coveo
Copy link
Copy Markdown
Contributor

Tickets/Tasks:

Description:

  • Addressed an issue where the hostname is duplicated for certain items in the result breadcrumbs

Cause:

  • On items with a single breadcrumb pointed to the home page, we replace the scraped breadcrumb with a link to the domain root. .i.e., <a href="https://www.canada.ca">www.canada.ca</a>.
  • In the front end search result template, when we build the breadcrumbs, we use the hostname + last breadcrumb.
  • This resulted in the breadcrumbs being repeated on these items. i.e., canada.ca > www.canada.ca

Testing:

  • You can find affected items by searching for @wordcount==1 in the Content Browser. Identify an item, then try to bring it up on the search results. Before, you'd see the address repeated: bst-tsb.gc.ca > www.bst-tsb.gc.ca. Now, you'll just see the hostname: bst-tsb.gc.ca
  • Sample searches:
    • "Change your address government/change-address.html"
    • "Other building finishing contractors - 23839 - Financial performance"
    • "Mycobacterium tuberculosis complex and non-tuberculous mycobacteria"
    • "Webinar transcript: Due diligence in the garment industry"
image image

@cfoss-coveo cfoss-coveo requested a review from a team March 5, 2026 18:47
Yves-Denis
Yves-Denis previously approved these changes Mar 5, 2026
Copy link
Copy Markdown

@Yves-Denis Yves-Denis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security Assessment Completed - Passed, no issues identified

Co-authored-by: Francis Gorman <francis.gorman25@gmail.com>
Co-authored-by: Francis Gorman <francis.gorman25@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants