File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
routes/notifications/constants Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import {
1313
1414export 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}}' ,
You can’t perform that action at this time.
0 commit comments