From a9441add3d22a099cf913d0ace2868a768cb8b17 Mon Sep 17 00:00:00 2001 From: Fernando Valverde Date: Thu, 23 Jul 2020 08:28:28 -0600 Subject: [PATCH] [deploy] Redirect override (#9469) --- app/controllers/chat_channel_memberships_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/chat_channel_memberships_controller.rb b/app/controllers/chat_channel_memberships_controller.rb index e278e0190..274de89b9 100644 --- a/app/controllers/chat_channel_memberships_controller.rb +++ b/app/controllers/chat_channel_memberships_controller.rb @@ -178,7 +178,7 @@ class ChatChannelMembershipsController < ApplicationController invite_cache_key = "chat-channel-invite-#{@chat_channel.id}" invitation_slug = Rails.cache.read(invite_cache_key) existing_membership = ChatChannelMembership.find_by(user_id: current_user.id, chat_channel_id: @chat_channel.id) - redirect_to connect_path(@chat_channel.slug) if existing_membership && existing_membership.status == "active" + redirect_to "/connect/#{@chat_channel.slug}" if existing_membership && existing_membership.status == "active" @link_expired = true if invitation_slug != params[:invitation_slug] end