WordPress database error: [Can't create/write to file '/tmp/#sql-temptable-4db-1579cc-37.MAI' (Errcode: 28 "No space left on device")]SELECT p.* FROM wp_mdb_forum_posts AS p LEFT JOIN wp_mdb_forum_posts AS q ON( q.Id = p.ParentId AND p.Id = q.AcceptedAnswerId ) WHERE p.PostTypeId = 2 AND p.ParentId = 98039 GROUP BY p.Id ORDER BY CASE WHEN q.Id IS NOT NULL THEN 1 ELSE 0 END DESC, p.UpvoteCount DESC, p.CreationDate ASC
Topic: Using Navbar to link farther down the same page?
**Expected behavior**
I'm wanting to have the navbar link to a div with an id lower down on the same page, instead of routing to a new page.
**Actual behavior**
The MDBLink is using react-router and only seems to route the url. It requires the to attribute and doesn't work the same as href going to a location on the page.
I got something working, when I surround a NavbarBrand tag with an .
I just wanted to know it there is a better way? different tag I should be using.
**Resources (screenshots, code snippets etc.)**<Router>
<MDBNavbar color="bg-primary" fixed="top" dark expand="md" scrolling transparent>
<MDBNavbarBrand href="/">
<strong>Navbar</strong>
</MDBNavbarBrand>
{!this.state.isWideEnough && <MDBNavbarToggler onClick={()=>{this.onClick()}} />}
<MDBCollapse isOpen={this.state.collapse} navbar>
<MDBNavbarNav left>
<MDBNavItem active>
<MDBNavLink to="#">Home</MDBNavLink>
</MDBNavItem>
<MDBNavItem>
<a href="#contactUs"><MDBNavLink to='#'>doesn't work</MDBNavLink></a>
{/* doesn't work... */}
</MDBNavItem>
<MDBNavItem>
<a href='#contactUs'><MDBNavbarBrand>works</MDBNavbarBrand></a>
{/* works */}
</MDBNavItem>
</MDBNavbarNav>
I made some comments in there, but the code looks better in the editor than in the preview.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Free
- Premium support: No
- Technology: MDB React
- MDB Version: 4.13.0
- Device: Hp Spectre
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: No