summaryrefslogtreecommitdiffstats
path: root/api/command.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-09-29 14:06:59 -0400
committerChristopher Speller <crspeller@gmail.com>2015-09-29 14:06:59 -0400
commitadfe129fcc5b2d19eb25ffb4da9709006272a964 (patch)
tree6b59b3f6bca75c28b18216086a8f99cdb84217ba /api/command.go
parent317dc0ea2655d7616bdd23dc07b011bdaf070a8e (diff)
parent5064f9cba2a63c166776279b2763151f8aed5310 (diff)
downloadchat-adfe129fcc5b2d19eb25ffb4da9709006272a964.tar.gz
chat-adfe129fcc5b2d19eb25ffb4da9709006272a964.tar.bz2
chat-adfe129fcc5b2d19eb25ffb4da9709006272a964.zip
Merge pull request #854 from justyns/gh842-invalid-join-url
Update the /join command to use the correct redirect URL
Diffstat (limited to 'api/command.go')
-rw-r--r--api/command.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/command.go b/api/command.go
index 0d2f7597b..427922344 100644
--- a/api/command.go
+++ b/api/command.go
@@ -195,7 +195,7 @@ func joinCommand(c *Context, command *model.Command) bool {
return false
}
- command.GotoLocation = "/channels/" + v.Name
+ command.GotoLocation = c.GetTeamURL() + "/channels/" + v.Name
command.Response = model.RESP_EXECUTED
return true
}