mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
Redirect system path to management on jobs URL
When user attempts to access `/jobs/system/66` redirect to `/jobs/management/66`. This will catch management jobs notifications, for instance, and redirect to the proper URL. See:#11113
This commit is contained in:
@@ -28,6 +28,7 @@ export const JOB_URL_SEGMENT_MAP = {
|
|||||||
playbook: 'job',
|
playbook: 'job',
|
||||||
project: 'project_update',
|
project: 'project_update',
|
||||||
management: 'system_job',
|
management: 'system_job',
|
||||||
|
system: 'system_job',
|
||||||
inventory: 'inventory_update',
|
inventory: 'inventory_update',
|
||||||
command: 'ad_hoc_command',
|
command: 'ad_hoc_command',
|
||||||
workflow: 'workflow_job',
|
workflow: 'workflow_job',
|
||||||
@@ -148,6 +149,7 @@ function Job({ setBreadcrumb }) {
|
|||||||
<Card>
|
<Card>
|
||||||
<RoutedTabs tabsArray={tabsArray} />
|
<RoutedTabs tabsArray={tabsArray} />
|
||||||
<Switch>
|
<Switch>
|
||||||
|
<Redirect from="/jobs/system/:id" to="/jobs/management/:id" exact />
|
||||||
<Redirect
|
<Redirect
|
||||||
from="/jobs/:typeSegment/:id"
|
from="/jobs/:typeSegment/:id"
|
||||||
to="/jobs/:typeSegment/:id/output"
|
to="/jobs/:typeSegment/:id/output"
|
||||||
|
|||||||
Reference in New Issue
Block a user