Skip to content

Commit

Permalink
fix broken context map link in sidebar (#1037)
Browse files Browse the repository at this point in the history
* fix broken context map link in sidebar

* Create smooth-hounds-unite.md

---------

Co-authored-by: David Boyne <[email protected]>
  • Loading branch information
otbe and boyney123 authored Dec 17, 2024
1 parent 317040f commit 9a61833
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/smooth-hounds-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@eventcatalog/core": patch
---

fix(core): fixed broken context map link in sidebar
4 changes: 3 additions & 1 deletion eventcatalog/src/layouts/VerticalSideBarLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ const allDataAsSideNav = allData.reduce((acc, item) => {
const sideNav = {
...(currentPath.includes('visualiser')
? {
'bounded context map': [{ label: 'Domain map', href: '/visualiser/context-map', collection: 'bounded-context-map' }],
'bounded context map': [
{ label: 'Domain map', href: buildUrl('/visualiser/context-map'), collection: 'bounded-context-map' },
],
}
: {}),
...allDataAsSideNav,
Expand Down

0 comments on commit 9a61833

Please sign in to comment.