Moving all links and redirects to react-router

Этот коммит содержится в:
Christopher Speller
2016-03-24 11:05:13 -04:00
родитель 68dad8c734
Коммит b62e29ba9c
35 изменённых файлов: 147 добавлений и 175 удалений

Просмотреть файл

@@ -23,6 +23,7 @@ import PreferenceStore from 'stores/preference_store.jsx';
import Constants from 'utils/constants.jsx';
import {intlShape, injectIntl, defineMessages, FormattedHTMLMessage} from 'react-intl';
import {browserHistory} from 'react-router';
const Preferences = Constants.Preferences;
const TutorialSteps = Constants.TutorialSteps;
@@ -136,7 +137,7 @@ class CreatePost extends React.Component {
this.setState({messageText: '', submitting: false, postError: null, previews: [], serverError: null});
if (data.goto_location && data.goto_location.length > 0) {
window.location.href = data.goto_location;
browserHistory.push(data.goto_location);
}
},
(err) => {