redirect when group chat link is broken due to # character
For more details see: https://github.com/status-im/status-react/issues/12025 Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
5e2806662c
commit
a4a6be17ed
|
@ -154,6 +154,12 @@ const validateGroupChatArgs = (args) => {
|
|||
|
||||
/* Open Group Chat in Status */
|
||||
const handleGroupChat = (req, res) => {
|
||||
/* Ugly fix for broken #mestresdobitcoin group chat.
|
||||
* See: https://github.com/status-im/status-react/issues/12025 */
|
||||
if (req.query['a1'] == '' && req.query['a2'] == undefined) {
|
||||
res.redirect(302, 'https://status.im/get/')
|
||||
return
|
||||
}
|
||||
try {
|
||||
validateGroupChatArgs(req.query)
|
||||
} catch(ex) {
|
||||
|
|
Loading…
Reference in New Issue