Remove /tickets prefix from ticket detail URLs
Routes and links now use /:id (e.g. /V675409888) instead of /tickets/:id. API calls are unaffected as they go through /api/tickets/. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -54,7 +54,7 @@ export default function NewTicketModal({ onClose }: NewTicketModalProps) {
|
||||
|
||||
const res = await api.post('/tickets', payload)
|
||||
onClose()
|
||||
navigate(`/tickets/${res.data.displayId}`)
|
||||
navigate(`/${res.data.displayId}`)
|
||||
} catch {
|
||||
setError('Failed to create ticket')
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user