Module doesn't work with homepages that don't have an alias

Created on 26 September 2024, about 2 months ago

Our site does not have a path alias for the homepage which makes sense for most sites where the homepage will always be available at /. When this module checks for the current path, rather than returning the path as / it returns it as /node/1234 or whatever is currently configured. It then attempts to process it e.g. removing the current page title 1234 and then matching the node path to in our case the default front page view at views.view.frontpage.yml. This results in a breadcrumb like home >> node > page title

Solution is to check if this is the homepage (accounting for language) and set the path_elements array to empty. The homepage will still be added back later if that is how it is configured.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

achap πŸ‡¦πŸ‡Ί

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024