The File Context path for the Gitpod button is not updated when browsing the repository

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

  • Close this issue

Summary

The File Context path for the Gitpod button is not updated when browsing the repository.

The file context is an extension to the repository context, in that Gitpod will check out the corresponding branch and open the respective file in an editor.

The Gitpod button was originally added in !37985 (merged). /cc @corneliusludmann @pslaughter @rkuba @ericschurter

Steps to reproduce

  1. Enable the Gitpod Integration.
  2. Go to gitlab-org/gitlab, see Gitpod button link.
    • https://gitpod.io/#https://gitlab.com/gitlab-org/gitlab/-/tree/master/ ✅
  3. Go to the /app directory, see Gitpod button link.
    • https://gitpod.io/#https://gitlab.com/gitlab-org/gitlab/-/tree/master/ ❌
  4. Refreshing the browser while browsing the /app directory properly updates the context to the following.
    • https://gitpod.io/#https://gitlab.com/gitlab-org/gitlab/-/tree/master/app ✅

What is the current bug behavior?

The Gitpod button link does not take into account the /app directory.

What is the expected correct behavior?

The Gitpod button link should take into account the /app directory.

Proposal

Generate the URL that we pass into the Gitpod button after the user clicks, but before we send the path to Gitpod.

Edited Jul 29, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading