Composer Dependency Linker fails to properly href to packagist

Summary

Composer Dependency Linker fails to properly show a link inside the composer.json file.

Steps to reproduce

  1. Create a repository and drop a sample composer.json file which requires a dependency present on packagist.

  2. Look at the file inside of Gitlab

Example Project

https://gitlab.com/RATELIMITED.ME/rlapi-group/rlapi-v4/blob/master/composer.json

What is the current bug behavior?

The file viewer shows "https://packagist.org/packages/phpunit/phpunit" rel="nofollow noreferrer noopener" target="_blank">phpunit/phpunit": "https://packagist.org/packages/phpunit/phpunit" rel="nofollow noreferrer noopener" target="_blank">^5.6", and clicking on it will take you to https://gitlab.com/RATELIMITED.ME/rlapi-group/rlapi-v4/blob/master/%3Ca%20href=

What is the expected correct behavior?

The viewer should show the proper link and have a proper href.

Assignee Loading
Time tracking Loading