light-bootstrap-dashboard icon indicating copy to clipboard operation
light-bootstrap-dashboard copied to clipboard

Question: some links in header dropdown fail - redirect to homepage (in HeaderLinks.jsx)

Open Mulli opened this issue 6 years ago • 0 comments

In the following code (in components/Header/HeaderLinks.jsx):

<NavDropdown eventKey={4} title="WIP" id="basic-nav-dropdown-left">
        <MenuItem eventKey={4.1} href="/#/NameReferralForm">Referral</MenuItem>
        <MenuItem eventKey={4.2} href="/#/FamilyIntakeForm">Intake</MenuItem>
        <MenuItem eventKey={4.3} href="/#/MeetingSummaryTable">MeetingSummary</MenuItem>
        <MenuItem eventKey={4.4} href="/#/Notification">Notification</MenuItem>
</NavDropdown>

All links work well on sidebar. But only 4.2 (/#/FamilyIntakeForm) works well in header. All other links will end in dashboard main screen. No errors reported.

Any idea what am I missing?

Just found out the any link that is defined in appRoutes[] in sidebar will show on header. How do I get rid of this duplication? Is there a place to define those links other then appRoutes[]? Any idea what am I missing?

Mulli avatar Nov 12 '18 15:11 Mulli