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
|
@ -8,7 +8,10 @@ var tabActions = Reflux.createActions([
|
|||
|
||||
tabActions.select.preEmit = (server, channel) => {
|
||||
if (channel) {
|
||||
routeActions.navigate('/' + server + '/' + channel.slice(1))
|
||||
while (channel[0] === '#') {
|
||||
channel = channel.slice(1);
|
||||
}
|
||||
routeActions.navigate('/' + server + '/' + channel);
|
||||
} else {
|
||||
routeActions.navigate('/' + server);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue