mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +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:
@ -17,7 +17,10 @@ module("Discourse Chat | Component | chat-channel-row", function (hooks) {
|
||||
|
||||
assert
|
||||
.dom(".chat-channel-row")
|
||||
.hasAttribute("href", `/chat/channel/${this.categoryChatChannel.id}/-`);
|
||||
.hasAttribute(
|
||||
"href",
|
||||
`/chat/c/${this.categoryChatChannel.slugifiedTitle}/${this.categoryChatChannel.id}`
|
||||
);
|
||||
});
|
||||
|
||||
test("allows tabbing", async function (assert) {
|
||||
|
Reference in New Issue
Block a user