Repository navigation
Commit 0f53d5f
fix(hybrid-cloud): Normalize customer domain paths for slugs starting with new (#128275)
`normalizeUrl()` skipped every `/organizations/<slug>/` path whose slug
starts with `new`, not just the `/organizations/new/` route, because the
lookahead was `(?!new)`. On customer domains, links for orgs such as
`new-moray` or `newco` kept the `/organizations/<slug>/` prefix. The
lookahead is now `(?!new/)`, so only the literal `new/` segment is
exempt.
`normalizeUrl.spec.tsx` keeps `/organizations/new/` unchanged and
normalizes `/organizations/new-moray/issues/` and
`/organizations/newco/`. The `new-moray` case fails without the fix.
The backend `customer_domain_path()` has the same pattern and is fixed
separately, because frontend and backend deploy separately: #128274.
Refs #109061
<!-- junior-request-attribution:start -->
via @joshuarli.
<!-- junior-request-attribution:end -->
<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A3f29e2341c39dfa3441598ed78b058a7 -->
--
[View Junior
Session](https://junior-prod.sentry.dev/conversations/agent%3A3f29e2341c39dfa3441598ed78b058a7)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A3f29e2341c39dfa3441598ed78b058a7/?project=4510944073809921)
<!-- junior-session-footer:end -->
Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Joshua Li <14209781+joshuarli@users.noreply.github.com>1 parent 1748359 commit 0f53d5f
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments