Skip to content

Fix NoMethodError when visiting repo analytics

Adam Hegyi requested to merge 354058-fix-nomethoderror-for-repo-analytics into master

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.

Related to #354058 (closed)

Edited by Adam Hegyi

Merge request reports

Loading