If no base URL is configured, the View Component, View Project, and View Vulnerability buttons will be omitted from the notification. Because they are intended to link back to Dependency-Track, it doesn't make sense to include them without valid URL.
Description
Fixes Slack notifications failing when no base URL is configured.
See https://github.com/DependencyTrack/dependency-track/issues/3742#issuecomment-2143465872 for details.
If no base URL is configured, the View Component, View Project, and View Vulnerability buttons will be omitted from the notification. Because they are intended to link back to Dependency-Track, it doesn't make sense to include them without valid URL.
Addressed Issue
Fixes #3742 Backports #3791
Additional Details
N/A
Checklist