Skip to content

Code Insights: Redirect users from the edit insight page to the dashboard they came from

Created by: vovakulikov

Closes https://github.com/sourcegraph/sourcegraph/issues/23202 Fixes https://github.com/sourcegraph/sourcegraph/issues/24036

This PR adds dashboard context info to be able to redirect users from the edit page to the dashboard they came from to the edit page.

Behavior before was just redirecting users to one of the built-in dashboards according to insight's visibility settings (personal, org-levels, global) with that logic we could redirect to the custom dashboard. With that PR change, you will be redirected to the same dashboard you came from (doesn't matter built-in dashboard or custom dashboard you came from).

Merge request reports

Loading