Fix target blank issue

This commit is contained in:
Berkeley Martinez
2015-11-13 12:54:46 -08:00
parent cde48b5c6b
commit eab4771466
2 changed files with 8 additions and 5 deletions

View File

@@ -48,9 +48,9 @@ export default React.createClass({
<LinkContainer <LinkContainer
eventKey={ index + 1 } eventKey={ index + 1 }
key={ content } key={ content }
target={ target || null }
to={ link }> to={ link }>
<NavItem> <NavItem
target={ target || null } >
{ content } { content }
</NavItem> </NavItem>
</LinkContainer> </LinkContainer>
@@ -60,7 +60,8 @@ export default React.createClass({
<NavItem <NavItem
eventKey={ index + 1 } eventKey={ index + 1 }
href={ link } href={ link }
key={ content }> key={ content }
target={ target || null }>
{ content } { content }
</NavItem> </NavItem>
); );

View File

@@ -3,14 +3,16 @@
"link": "/map" "link": "/map"
}, { }, {
"content": "Chat", "content": "Chat",
"link": "//gitter.im/FreeCodeCamp/FreeCodeCamp" "link": "//gitter.im/FreeCodeCamp/FreeCodeCamp",
"target": "_blank"
},{ },{
"content": "Wiki", "content": "Wiki",
"link": "https://github.com/freecodecamp/freecodecamp/wiki/", "link": "https://github.com/freecodecamp/freecodecamp/wiki/",
"target": "_blank" "target": "_blank"
},{ },{
"content": "News", "content": "News",
"link": "/news" "link": "/news",
"target": "_blank"
},{ },{
"content": "Jobs", "content": "Jobs",
"link": "/jobs", "link": "/jobs",