Point Community page links at the sections that exist
The nav and the org pages' "All regions" and "All chapters" links used #local and #virtual, but the Community page's sections are #chapters and #regions, so those links didn't jump anywhere. The nav labels now match the section headings too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d374f9ac17
commit
c62dc84add
2 changed files with 4 additions and 4 deletions
|
|
@ -165,9 +165,9 @@ export const ORG_KIND_LABEL: Record<string, string> = {
|
||||||
export function orgListHref(kind?: string | null): { to: string; label: string } {
|
export function orgListHref(kind?: string | null): { to: string; label: string } {
|
||||||
switch (kind) {
|
switch (kind) {
|
||||||
case 'region':
|
case 'region':
|
||||||
return { to: '/community#local', label: 'All regions' }
|
return { to: '/community#regions', label: 'All regions' }
|
||||||
case 'chapter':
|
case 'chapter':
|
||||||
return { to: '/community#local', label: 'All chapters' }
|
return { to: '/community#chapters', label: 'All chapters' }
|
||||||
case 'partner':
|
case 'partner':
|
||||||
return { to: '/community#partners', label: 'All partner organizations' }
|
return { to: '/community#partners', label: 'All partner organizations' }
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,8 @@ export const PAGE_SECTIONS = {
|
||||||
],
|
],
|
||||||
"/community": [
|
"/community": [
|
||||||
{ label: "Community Blog", hash: "#blog" },
|
{ label: "Community Blog", hash: "#blog" },
|
||||||
{ label: "Local Chapters", hash: "#local" },
|
{ label: "Local Chapters", hash: "#chapters" },
|
||||||
{ label: "Virtual Community", hash: "#virtual" },
|
{ label: "Unity Regions", hash: "#regions" },
|
||||||
{ label: "Partner Organizations", hash: "#partners" },
|
{ label: "Partner Organizations", hash: "#partners" },
|
||||||
],
|
],
|
||||||
"/leadership": [
|
"/leadership": [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue