mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 14:35:17 +08:00
DEV: /channel
-> /c
chat route rename (#19782)
* DEV: Rnemae channel path to just c Also swap the channel id and channel slug params to be consistent with core. * linting * channel_path * params in wrong order * Drop slugify helper and channel route without slug * Request slug and route models through the channel model if possible * Add client side redirection for backwards-compatibility Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
This commit is contained in:
@ -25,9 +25,7 @@ RSpec.describe "Channel - Info - Settings page", type: :system, js: true do
|
||||
it "redirects to about tab" do
|
||||
chat_page.visit_channel_settings(channel_1)
|
||||
|
||||
expect(page).to have_current_path(
|
||||
"/chat/channel/#{channel_1.id}/#{channel_1.slug}/info/about",
|
||||
)
|
||||
expect(page).to have_current_path("/chat/c/#{channel_1.slug}/#{channel_1.id}/info/about")
|
||||
end
|
||||
|
||||
it "doesn’t have settings tab" do
|
||||
@ -49,7 +47,7 @@ RSpec.describe "Channel - Info - Settings page", type: :system, js: true do
|
||||
chat_page.visit_channel_settings(channel_1)
|
||||
|
||||
expect(page).to have_current_path(
|
||||
"/chat/channel/#{channel_1.id}/#{channel_1.slug}/info/settings",
|
||||
"/chat/c/#{channel_1.slug}/#{channel_1.id}/info/settings",
|
||||
)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user