forked from Gitlink/forgeplus-react
Merge branch 'newVersion_forge' into dev_devOps
# Conflicts: # src/forge/Main/Detail.js
This commit is contained in:
commit
b6dfe2cd4a
|
@ -575,19 +575,11 @@ class NewHeader extends Component {
|
||||||
matchpaths = (url) => {
|
matchpaths = (url) => {
|
||||||
const { match } = this.props;
|
const { match } = this.props;
|
||||||
if(url){
|
if(url){
|
||||||
if (url === '/forums' && match.path === '/forums') {
|
if (url.indexOf('forums') > -1 && match.path.indexOf('forums') > -1) {
|
||||||
return true
|
return true
|
||||||
} else if (url.startsWith('/projects') && match.path.startsWith('/projects')) {
|
} else if (url.indexOf('projects') > -1 && match.path.indexOf('projects') > -1) {
|
||||||
return true
|
return true
|
||||||
} else if (url.startsWith('/paths') && match.path.startsWith('/paths')) {
|
} else if (url.indexOf('users') > -1 && match.path.indexOf('users') > -1) {
|
||||||
return true
|
|
||||||
} else if (url.startsWith('/courses') && match.path.startsWith('/courses')) {
|
|
||||||
return true
|
|
||||||
} else if (url.startsWith('/competitions') && match.path.startsWith('/competitions')) {
|
|
||||||
return true
|
|
||||||
} else if (url.startsWith('/statistics') && match.path.startsWith('/statistics')) {
|
|
||||||
return true
|
|
||||||
} else if (url.startsWith('/users') && match.path.startsWith('/users')) {
|
|
||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in New Issue