Skip to content

Enhanced routing for CVE and business value management with deeplinks - #655

Merged
stijnpotters1 merged 9 commits into
masterfrom
fix/add-item-to-url
Jul 22, 2026
Merged

Enhanced routing for CVE and business value management with deeplinks#655
stijnpotters1 merged 9 commits into
masterfrom
fix/add-item-to-url

Conversation

@stijnpotters1

Copy link
Copy Markdown
Contributor

Done for cve-overview, vulnerability-manage and business-value pages

@stijnpotters1 stijnpotters1 self-assigned this Jul 8, 2026
@stijnpotters1 stijnpotters1 linked an issue Jul 8, 2026 that may be closed by this pull request
@stijnpotters1
stijnpotters1 requested a review from Matthbo July 20, 2026 06:52
this.selectedBusinessValue.set(null);
this.resetIssueSelection();
this.location.go(`/release-manage/${this.releaseId()}/business-values`);
this.router.navigate([`/release-manage/${this.releaseId()}/business-values`]);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
this.router.navigate([`/release-manage/${this.releaseId()}/business-values`]);
this.router.navigate(['/release-manage', this.releaseId(), 'business-values']);

https://angular.dev/api/router/Router#navigate
Also for the other router.navigate calls

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When i apply this at all places i have duplicate linting errors.
So i used constants for this.

@Matthbo Matthbo Jul 20, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplicate linting has to do with recreating the same strings, just saving then as a readonly variable or as a constant in the file should be fine for that
The example I give is more preferred than just duping a single string into the route path array

@stijnpotters1
stijnpotters1 requested a review from Matthbo July 20, 2026 12:19

@Matthbo Matthbo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I replied to the conversation

@stijnpotters1
stijnpotters1 requested a review from Matthbo July 21, 2026 09:29
@sonarqubecloud

Copy link
Copy Markdown

@stijnpotters1
stijnpotters1 merged commit 2df8e07 into master Jul 22, 2026
5 checks passed
@stijnpotters1
stijnpotters1 deleted the fix/add-item-to-url branch July 22, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add CVE to url

2 participants