Commit b89f95b4 authored by Dheeraj Joshi's avatar Dheeraj Joshi

Fix redirection on saving DAST scans

Navigate to Manage scans page on saving
an On-demand DAST scan
parent 6798107e
......@@ -285,7 +285,7 @@ export default {
this.showErrors(ERROR_RUN_SCAN, errors);
this.loading = false;
} else if (!runAfter) {
redirectTo(response.dastProfile.editPath);
redirectTo(this.profilesLibraryPath);
this.clearStorage = true;
} else {
this.clearStorage = true;
......
......@@ -318,7 +318,7 @@ describe('OnDemandScansForm', () => {
describe.each`
action | actionFunction | submitButtonLoading | saveButtonLoading | runAfter | redirectPath
${'submit'} | ${submitForm} | ${true} | ${false} | ${true} | ${pipelineUrl}
${'save'} | ${saveScan} | ${false} | ${true} | ${false} | ${editPath}
${'save'} | ${saveScan} | ${false} | ${true} | ${false} | ${profilesLibraryPath}
`(
'on $action',
({ actionFunction, submitButtonLoading, saveButtonLoading, runAfter, redirectPath }) => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment