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:
Jakub Sokołowski 2021-04-21 14:54:37 +02:00 committed by Jakub
parent 5e2806662c
commit a4a6be17ed
1 changed files with 6 additions and 0 deletions

View File

@ -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) {