BUG Legacy /targets links redirect to Home instead of Target Registry
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 88/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- react, typescript
- Área
- frontend
Línea de trabajo
Inspecciona frontend/src/App.tsx alrededor de las líneas 614-625 y 674, y luego reproduce el comportamiento del enrutamiento abriendo /targets en el frontend o con los pasos de Playwright proporcionados. Añade la redirección de compatibilidad para que /targets llegue a /registry/targets en lugar de a la ruta Home comodín, y verifica el pathname resultante.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
The target-management route moved from /targets to /registry/targets, but the application does not preserve the old route as a compatibility redirect. Opening a saved /targets link falls through to the wildcard route and silently redirects to Home (/) instead of the Target Registry.
This was reproduced on commit 6fd719317c09228cb332cacf5d76b6602610b591. Fresh searches across open issues and pull requests found no matching report. Open PR #2699 was also inspected; it does not add the missing redirect.
Relevant source: frontend/src/App.tsx:614-625,674.
Steps/Code to Reproduce
- Start the frontend.
- Navigate directly to
/targets, which was the canonical target-management route before the Converter Registry change. - Wait for application routing to settle.
- Observe that the URL becomes
/and Home is displayed.
await page.goto('/targets');
console.log(new URL(page.url()).pathname);
// Actual: '/'
// Expected: '/registry/targets'
Expected Results
The legacy /targets route should redirect to /registry/targets, preserving bookmarks, documentation links, browser history, and user intent.
For example:
<Route path="/targets" element={<Navigate to="/registry/targets" replace />} />
Actual Results
The wildcard route redirects /targets to /. Home is shown with no explanation, and the Target Registry is not visible.
Users can recover by opening Registry manually, but existing links silently lose their destination.
Screenshots
N/A. The URL transition and visible Home route are deterministic from the steps above.
Versions
- OS: Windows
- Browser: Chromium through Playwright 1.63.0
- Node: 25.7.0
- Python: 3.14.4
- PyRIT:
1.2.0.dev0, commit6fd719317c09228cb332cacf5d76b6602610b591 - Python package inventory: N/A; this is a frontend routing defect.
- Lenguaje dominante
- Python
- Estrellas
- 4.5k
- Forks
- 896
- Merge medio
- 3 d 7 h
- PR fusionados (30 d)
- 155
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/PyRIT
-
Bug: triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
-
BUG: ScorerMetrics.to_json() raises TypeError on the trial_scores array ScorerEvaluator attaches Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 78/100
-
Bug: triage help wanted
Dificultad 3/5 1-2 días Aptitud para principiantes 75/100
-
BUG Console printers write ANSI/OSC sequences from target responses straight to the terminal Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 68/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 45/100
Todos los issues de microsoft/PyRIT
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100