Link a breadcrumb's group to the group's own page
Mirror to forge / mirror (push) Canceled after 0s
Validate / validate (push) Canceled after 0s
Validate / history (push) Canceled after 0s
Validate / site (push) Canceled after 0s
Validate / deploy (push) Canceled after 0s

The group crumb on a trail page went to an anchor on the places index;
it now goes to /regions/<group>/, as the state and province pages do.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-18 17:44:44 -07:00
1 parent fd7e0302ca
commit 9e435fa2a4
4 files changed
+38 -3

No files matched your search

+2 -2
View File
@@ -8,7 +8,7 @@ import os
import re
import urllib.parse
from . import browse, common, elevation, facets, hike, related, seo, sketch, words
from . import browse, common, elevation, facets, hike, regions, related, seo, sketch, words
from .layout import OUTDOOR_STYLE
from .markup import Markup, esc
@@ -405,7 +405,7 @@ def page_head(rec, author_links=None):
groups = facets.place_groups(rec)
if keys and keys[0] in facets.GROUP_OF:
g = facets.GROUP_OF[keys[0]]
crumbs.append(f'<li><a href="/regions/#{esc(g)}">{esc(facets.GROUP_NAME[g])}</a></li>')
crumbs.append(f'<li><a href="{esc(regions.group_path(g))}">{esc(facets.GROUP_NAME[g])}</a></li>')
crumbs.append(f'<li><a href="{esc(facets.place_path(keys[0]))}">{esc(facets.place_name(keys[0]))}</a></li>')
elif groups:
crumbs.append(f'<li><a href="/regions/#across-canada">{esc(facets.ACROSS_CANADA_NAME)}</a></li>')