Skip to content

Commit 442a4f1

Browse files
authored
Merge pull request #2763 from jankyzhang/cf14
Notification about project specification has wrong link #2614
2 parents 433d285 + a6e951e commit 442a4f1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/projects/detail/ProjectDetail.jsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,14 @@ class ProjectDetail extends Component {
107107
document.title = `${project.name} - Topcoder`
108108
}
109109

110+
// if project version not v3 , URL /scope redirect to /specification
111+
if(project
112+
&& project.version
113+
&& project.version !== 'v3'
114+
&& this.props.history.location.pathname.indexOf('/scope') !== -1 ){
115+
this.props.history.push(this.props.history.location.pathname.replace('/scope', '/specification'))
116+
}
117+
110118
// load project if URL changed
111119
if (this.props.match.params.projectId !== match.params.projectId) {
112120
this.props.loadProjectDashboard(match.params.projectId)

src/routes/notifications/constants/notifications.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313

1414
export const GOTO = {
1515
PROJECT_DASHBOARD: '/projects/{{projectId}}',
16-
PROJECT_SPECIFICATION: '/projects/{{projectId}}/specification',
16+
PROJECT_SPECIFICATION: '/projects/{{projectId}}/scope',
1717
PROJECT_PLAN: '/projects/{{projectId}}/plan',
1818
TOPIC: '/projects/{{projectId}}/#feed-{{topicId}}',
1919
POST: '/projects/{{projectId}}/#comment-{{postId}}',

0 commit comments

Comments
 (0)