creativetimofficial / light-bootstrap-dashboard

Light Bootstrap Dashboard is an admin dashboard template designed to be beautiful and simple.
https://www.creative-tim.com/product/light-bootstrap-dashboard
MIT License
1.36k stars 713 forks source link

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

Open Mulli opened 5 years ago

Mulli commented 5 years ago

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?