Skip to content

A platform for community discussion. Free, open, simple.

UX: chat channel title links to channel settings (#25785)

David Battersby1d4ef460acb5
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/navbar/channel-title.gjs b/plugins/chat/assets/javascripts/discourse/components/chat/navbar/channel-title.gjs
index b99092b97d4..036d23855c0 100644
--- a/plugins/chat/assets/javascripts/discourse/components/chat/navbar/channel-title.gjs
+++ b/plugins/chat/assets/javascripts/discourse/components/chat/navbar/channel-title.gjs
@@ -4,7 +4,7 @@ import ChannelTitle from "discourse/plugins/chat/discourse/components/channel-ti
const ChatNavbarChannelTitle = <template>
{{#if @channel}}
<LinkTo
- @route="chat.channel.info.members"
+ @route="chat.channel.info.settings"
@models={{@channel.routeModels}}
class="c-navbar__channel-title"
>
diff --git a/plugins/chat/spec/system/drawer_spec.rb b/plugins/chat/spec/system/drawer_spec.rb
index a56066df229..a35f9a49635 100644
--- a/plugins/chat/spec/system/drawer_spec.rb
+++ b/plugins/chat/spec/system/drawer_spec.rb
@@ -18,13 +18,13 @@ RSpec.describe "Drawer", type: :system do
end
context "when clicking channel title" do
- it "opens channel info page" do
+ it "opens channel settings page" do
visit("/")
chat_page.open_from_header
drawer_page.open_channel(channel)
page.find(".c-navbar__channel-title").click
- expect(page).to have_current_path("/chat/c/#{channel.slug}/#{channel.id}/info/members")
+ expect(page).to have_current_path("/chat/c/#{channel.slug}/#{channel.id}/info/settings")
end
end
end