Fix NoMethodError when visiting repo analytics
What does this MR do and why?
This MR fixes the NoMethodError when visiting a bookmarked/old repo analytics link after the group path was changed (rename/move group). The standard fix is to provide the build_canonical_path
which is used as the redirect URL when a path mismatch (renamed) is detected.
Related error: https://sentry.gitlab.net/gitlab/gitlabcom/issues/3211082/?referrer=gitlab_plugin
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #354058 (closed)
Edited by Adam Hegyi