chore: update forum links in NavLinks (#39141)

This commit is contained in:
Oliver Eyton-Williams
2020-06-30 10:46:05 +02:00
committed by GitHub
parent 25cabc0a18
commit 34c26c4950
2 changed files with 6 additions and 2 deletions

View File

@ -23,7 +23,7 @@ describe('<NavLinks />', () => {
return acc; return acc;
}, []); }, []);
const expectedLinks = ['/learn', '/news', '/forum']; const expectedLinks = ['/learn', '/news', 'https://forum.freecodecamp.org'];
it('renders to the DOM', () => { it('renders to the DOM', () => {
expect(root).toBeTruthy(); expect(root).toBeTruthy();

View File

@ -17,7 +17,11 @@ function NavLinks({ displayMenu }) {
</Link> </Link>
</li> </li>
<li className='nav-forum'> <li className='nav-forum'>
<Link external={true} sameTab={true} to='/forum'> <Link
external={true}
sameTab={true}
to='https://forum.freecodecamp.org'
>
/forum /forum
</Link> </Link>
</li> </li>