Skip to content

Commit

Permalink
Minor fix: added '/' to the beginning of intra-page Link names to fix…
Browse files Browse the repository at this point in the history
… bug where they got compouned. For example '/about' -> 'events' became '/about/events', but '/about' -> '/events' correctly goes to '/events'
  • Loading branch information
SevLG committed Oct 1, 2024
1 parent 7070446 commit 6b8d8db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions next-app/src/components/HeaderComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import React from "react";
export default function HeaderComponent() {

const links: { [id: string] : ILink; } = {
'l1': { text: 'Data Sources', classes: LINK_CLASSES, link: 'datasources' },
'l2': { text: 'Events & Trainings', classes: LINK_CLASSES, link: 'eventsandtrainings' },
'l1': { text: 'Data Sources', classes: LINK_CLASSES, link: '/datasources' },
'l2': { text: 'Events & Trainings', classes: LINK_CLASSES, link: '/eventsandtrainings' },
'l3': { text: 'Access Clinical Data', classes: LINK_CLASSES, link: '/accessclinicaldata' },
'l4': { text: 'Contact', classes: LINK_CLASSES, link: 'contact' },
'l5': { text: 'About Us', classes: LINK_CLASSES, link: 'about/product' },
'l4': { text: 'Contact', classes: LINK_CLASSES, link: '/contact' },
'l5': { text: 'About Us', classes: LINK_CLASSES, link: '/about/product' },
};

{/*
Expand Down

0 comments on commit 6b8d8db

Please sign in to comment.