cloudflare / cloudflare/partykit
basePath not taking a leading slash
Open
Beginner friendly
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 79
- PR merge metrics
- No merged PRs in 30d
Description
Suggested fix https://github.com/cloudflare/partykit/compare/main...nachobibian:partykit:patch-1
```javascript
// if user provided a leading slash, remove it
if (basePath?.startsWith("/")) {
basePath = basePath.slice(1);
}
```
Contributor guide
Research direction
Start by searching the TypeScript source for basePath handling and compare the current behavior with the suggested change in the issue body. Verify that a basePath beginning with a slash is accepted and normalized as intended; done means the reported leading-slash case works without regressing the existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100