Commit ede8b41
fix(cmdk): Restore new-tab behavior for admin links
The /_admin/ actions were converted to 'to' props, causing
isExternalLocation to return false (same origin) and navigate()
to attempt client-side routing to Django-served admin pages.
Switch both admin CMDKActions to onAction with window.open so
they open in a new tab as originally intended.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 0727811 commit ede8b41
File tree
1 file changed
+8
-2
lines changed- static/app/components/commandPalette/ui
1 file changed
+8
-2
lines changedLines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
| 230 | + | |
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
239 | 245 | | |
240 | 246 | | |
241 | 247 | | |
| |||
0 commit comments