Skip to content

fix: Handle slug validation errors in Help Center - #11368

Merged
scmmishra merged 1 commit into
developfrom
fix/CW-4273
Apr 24, 2025
Merged

fix: Handle slug validation errors in Help Center#11368
scmmishra merged 1 commit into
developfrom
fix/CW-4273

Conversation

@iamsivin

Copy link
Copy Markdown
Member

Pull Request Template

Description

This PR fixes an issue with slug validation in the Help Center portal settings. Previously, users were able to create or update slugs with invalid characters such as spaces, slashes, and special symbols, which cause help center to crash.

With this update, slug creation and updates are now properly validated. Only slugs that match the allowed pattern will be accepted. No spaces, underscores, slashes, or special characters are allowed.

Examples: user, user-guide


Fixes https://linear.app/chatwoot/issue/CW-4273/add-validation-for-help-centre-slugs

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Loom video

https://www.loom.com/share/a2ca5e2104984f28b29539293ffed33a?sid=e5064cb8-6220-4c43-99da-242c25d32027

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented on my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@linear

linear Bot commented Apr 24, 2025

Copy link
Copy Markdown

@iamsivin
iamsivin requested review from muhsin-k and scmmishra April 24, 2025 09:59
@scmmishra
scmmishra merged commit 73f768e into develop Apr 24, 2025
@scmmishra
scmmishra deleted the fix/CW-4273 branch April 24, 2025 11:28
@sentry

sentry Bot commented Apr 29, 2025

Copy link
Copy Markdown

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ SyntaxError: No error message conversation_mentions View Issue

Did you find this useful? React with a 👍 or 👎

sagarcakewalk pushed a commit to insidebeehive/chatwoot that referenced this pull request May 15, 2025
# Pull Request Template

## Description

This PR fixes an issue with slug validation in the Help Center portal
settings. Previously, users were able to create or update slugs with
invalid characters such as spaces, slashes, and special symbols, which
cause help center to crash.

With this update, slug creation and updates are now properly validated.
Only slugs that match the allowed pattern will be accepted. No spaces,
underscores, slashes, or special characters are allowed.

Examples: **user**, **user-guide**

---

Fixes
https://linear.app/chatwoot/issue/CW-4273/add-validation-for-help-centre-slugs

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)

## How Has This Been Tested?

### Loom video

https://www.loom.com/share/a2ca5e2104984f28b29539293ffed33a?sid=e5064cb8-6220-4c43-99da-242c25d32027


## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants