diff --git a/CHANGELOG.md b/CHANGELOG.md index d26284d..3b4fe27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2026-11-18 - Group crumbs go to the group's page + +- The group in a breadcrumb ("West Coast" in Places / West Coast / California / Sierra High Route) now links to that group's own page, `/regions/west-coast/`, instead of an anchor on the places index. Across Canada has no page of its own and still links to its place on the index. + ## 2026-11-18 - Place maps open on the place - A state, province or group page now opens its map on the place itself. Before, the map fitted every trail that touches the place, so one coast-to-coast trail opened Utah's map on the whole United States. diff --git a/web/olt/trail.py b/web/olt/trail.py index 7052c46..f30f88d 100644 --- a/web/olt/trail.py +++ b/web/olt/trail.py @@ -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'
  • {esc(facets.GROUP_NAME[g])}
  • ') + crumbs.append(f'
  • {esc(facets.GROUP_NAME[g])}
  • ') crumbs.append(f'
  • {esc(facets.place_name(keys[0]))}
  • ') elif groups: crumbs.append(f'
  • {esc(facets.ACROSS_CANADA_NAME)}
  • ') diff --git a/web/tests/test_facets.py b/web/tests/test_facets.py index 7e99144..b1cbb9d 100644 --- a/web/tests/test_facets.py +++ b/web/tests/test_facets.py @@ -169,7 +169,7 @@ class PlaceTest(unittest.TestCase): body = trail.render(fake(1, regions=["CO"]), GH)[2] crumbs = body[body.index('