Clicking on the link to the code diffs in the discussion leads to 404, duplicate project and group name in path

Go to either of these 2 MRs with diff changes in the discussions

Scroll down to click on the link in changed this line in version 3 of the diff 8 minutes ago

Screen_Shot_2019-06-12_at_3.58.34_PM

The link leads to a 404.

  • https://gitlab.com/gitlab-com/www-gitlab-com/master/gitlab-com/www-gitlab-com/merge_requests/24168/diffs?diff_id=45067874&start_sha=a49a0de70730ff64aa54536bc2592e499357e662#5227d6a27af0b4a8503a19a2deff784eddd5310d_79_79
  • https://gitlab.com/gitlab-com/www-gitlab-com/master/gitlab-com/www-gitlab-com/merge_requests/24011/diffs?diff_id=45067843&start_sha=0dbb1a786bba34a3b2c56c283ae4a3d2a294eeaa#3d51187ce078f4398390bf9ed3a22222978fbaf7_1250_1250

Upon inspecting the path seems duplicated.

https://gitlab.com/gitlab-com/www-gitlab-com/master/gitlab-com/www-gitlab-com/merge_requests/

We are repeating gitlab-com/www-gitlab-com/ in the url.

Workaround

Removing the project, group and branch name makes the link work again.

https://gitlab.com/gitlab-com/www-gitlab-com/merge_requests/24168/diffs?diff_id=45067874&start_sha=a49a0de70730ff64aa54536bc2592e499357e662#5227d6a27af0b4a8503a19a2deff784eddd5310d_79_79

Triaging as ~S2 since the workaround is complex and not an acceptable workflow for the user.

FYI @mlapierre for ~Create

Edited by Mek Stittri