Handle double hashtag channel names in URLs
This commit is contained in:
parent
518a530f43
commit
2f1e72876b
4 changed files with 38 additions and 8 deletions
|
@ -12,12 +12,14 @@ var Chat = React.createClass({
|
|||
mixins: [Router.State],
|
||||
|
||||
componentWillMount: function() {
|
||||
var p = this.getParams();
|
||||
if (!window.loaded) {
|
||||
var p = this.getParams();
|
||||
|
||||
if (p.channel) {
|
||||
tabActions.select(p.server, '#' + p.channel);
|
||||
} else if (p.server) {
|
||||
tabActions.select(p.server);
|
||||
if (p.channel) {
|
||||
tabActions.select(p.server, '#' + p.channel);
|
||||
} else if (p.server) {
|
||||
tabActions.select(p.server);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue