"Git reference" dropdown on "New workspace" form ignores the referrer route

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

The "Git reference" in the "New workspace" form is always prefilled as the default branch, no matter whether the user triggered this form from a page that represents a completely different git reference. That's inconsistent with how the Web IDE works.

Solution

When the "New workspace" form is triggered from any page within a project, it should use the currently selected git reference on the page they are on.

Edited by 🤖 GitLab Bot 🤖