Commit d4c88dca authored by Dheeraj Joshi's avatar Dheeraj Joshi

Use correct fragment identifier for vulnerability help path

parent f4ffffff
---
title: Use correct fragment identifier for vulnerability help path
merge_request: 20524
author:
type: fixed
<script>
import { GlButton } from '@gitlab/ui';
import Icon from '~/vue_shared/components/icon.vue';
import { setUrlFragment } from '~/lib/utils/url_utility';
export default {
name: 'SolutionCard',
......@@ -42,7 +43,10 @@ export default {
return (this.remediation && this.remediation.summary) || this.solution;
},
helpPath() {
return `${this.vulnerabilityFeedbackHelpPath}#solutions-for-vulnerabilities`;
return setUrlFragment(
this.vulnerabilityFeedbackHelpPath,
'solutions-for-vulnerabilities-auto-remediation',
);
},
showCreateMergeRequestMsg() {
return !this.hasMr && this.hasRemediation && this.hasDownload;
......
......@@ -109,7 +109,7 @@ describe('Security Reports modal', () => {
it('renders help link', () => {
expect(wrapper.find('.js-link-vulnerabilityFeedbackHelpPath').attributes('href')).toBe(
'feedbacksHelpPath#solutions-for-vulnerabilities',
'feedbacksHelpPath#solutions-for-vulnerabilities-auto-remediation',
);
});
});
......
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