RocketChat / RocketChat/Rocket.Chat

Encode special character in url.

Open
#24,220 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

I create two-channel with names "6@&hh" and "6@#&%^()hh" and I see url for 6@&hh channel name is https://open.rocket.chat/group/6 -and-hh and for 6@#&%^()hh is https://open.rocket.chat/group/6-and-hh-2 which is almost similar.Is that intentional?I think we should encode special characters.

Environment Information:
  • Rocket.Chat Server Version:4.4
  • Rocket.Chat App Version:4.24.0
  • Device Name: Realme Narzo 20
  • OS Version:
Steps to reproduce:
  1. Go to create channel option
  2. Give Chanel Name with some special characters.
  3. And create it.
Expected behavior:

But for channel name- "twyw jaja *+" URL is should be https://open.rocket.chat/group/405-twyw-jaja.20*.2B

Actual behavior:

Like for channel name- "twyw jaja *+" URL is https://open.rocket.chat/group/twyw-jaja

Additional context:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by creating channels with spaces and special characters, then compare the generated group URLs with the expected encoded form. Trace the channel-name-to-URL entry point and verify that distinct names remain distinct and navigable after the change; no file or test path is identified in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.