Merge pull request #808 from mattermost/fixing-redirect2

fixing more redirect places
Этот коммит содержится в:
Corey Hulen
2015-09-25 09:54:25 -07:00
родитель f75475d3d0 ad346f8734
Коммит 30bc17a740
4 изменённых файлов: 6 добавлений и 4 удалений

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

@@ -4,6 +4,7 @@
const Client = require('../utils/client.jsx');
const AsyncClient = require('../utils/async_client.jsx');
const ChannelStore = require('../stores/channel_store.jsx');
var TeamStore = require('../stores/team_store.jsx');
export default class DeleteChannelModal extends React.Component {
constructor(props) {
@@ -24,7 +25,7 @@ export default class DeleteChannelModal extends React.Component {
Client.deleteChannel(this.state.channelId,
function handleDeleteSuccess() {
AsyncClient.getChannels(true);
window.location.href = '/';
window.location.href = TeamStore.getCurrentTeamUrl() + '/channels/town-square';
},
function handleDeleteError(err) {
AsyncClient.dispatchError(err, 'handleDelete');

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

@@ -262,7 +262,7 @@ export default class Navbar extends React.Component {
return (
<div className='navbar-brand'>
<a
href='/'
href={TeamStore.getCurrentTeamUrl() + '/channels/town-square'}
className='heading'
>
{channelTitle}

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

@@ -42,7 +42,7 @@ export default class SSOSignUpPage extends React.Component {
if (data.follow_link) {
window.location.href = data.follow_link;
} else {
window.location.href = '/';
window.location.href = '/' + team.name + '/channels/town-square';
}
},
function fail(err) {