|
|
|
@ -335,11 +335,19 @@ class CoursesNew extends Component {
|
|
|
|
|
// this.props.history.push(this.props.current_user.first_category_url);
|
|
|
|
|
// }
|
|
|
|
|
// window.history.go(-1)
|
|
|
|
|
try {
|
|
|
|
|
if(id===undefined){
|
|
|
|
|
this.props.history.goBack()
|
|
|
|
|
this.props.history.push("/");
|
|
|
|
|
}else{
|
|
|
|
|
if(this.props.current_user.first_category_url===undefined){
|
|
|
|
|
this.props.history.push("/");
|
|
|
|
|
}else{
|
|
|
|
|
this.props.history.push(this.props.current_user.first_category_url);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}catch (e) {
|
|
|
|
|
this.props.history.push("/");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|