Merge pull request #8 from jmsmrgn/patch-1

Add trailing slashes to nav links
This commit is contained in:
A. Shelepenok 2016-08-25 04:08:14 +03:00 committed by GitHub
commit f869ef4946

View File

@ -14,11 +14,11 @@ class SiteNav extends React.Component {
</Link>
</li>
<li>
<Link to="/about" className={ location.pathname === prefixLink('/about') ? "current" : null }> About me
<Link to="/about/" className={ location.pathname === prefixLink('/about/') ? "current" : null }> About me
</Link>
</li>
<li>
<Link to="/contact" className={ location.pathname === prefixLink('/contact') ? "current" : null }> Contact me
<Link to="/contact/" className={ location.pathname === prefixLink('/contact/') ? "current" : null }> Contact me
</Link>
</li>
</ul>