Link a breadcrumb's group to the group's own page
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:
1 parent
fd7e0302ca
commit
9e435fa2a4
4 files changed
+38
-3
No files matched your search
@@ -169,7 +169,7 @@ class PlaceTest(unittest.TestCase):
|
||||
body = trail.render(fake(1, regions=["CO"]), GH)[2]
|
||||
crumbs = body[body.index('<nav class="breadcrumb"'):body.index("</nav>")]
|
||||
self.assertIn('<a href="/regions/">Places</a>', crumbs)
|
||||
self.assertIn('<a href="/regions/#mountain-west">Mountain West</a>', crumbs)
|
||||
self.assertIn('<a href="/regions/mountain-west/">Mountain West</a>', crumbs)
|
||||
self.assertIn('<a href="/regions/us-co/">Colorado</a>', crumbs)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user