Follow-up from "Add file path parameter to preview markdown endpoint"

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

  • Close this issue

The following discussion from !18899 (merged) should be addressed:

  • @fjsanpedro started a discussion:

    We had to add this property because we don't have the file path in the viewer. The only information available is the project path and also, through this.$attrs.path the rawPath of the file.

    We added a new property in the repo editor to pass this information but, in order not to break anything, we didn't update the existing attribute path (which stores namespace/project/raw/master/file_path). Nevertheless, I think the naming is incorrect and we should refactor this references in all the places we use it to match the content it holds.

We need to refactor the naming we're using to make it more intuitive. For example, if the attribute is storing the raw path of a file (pointing to the raw endpoint) we should name it rawPath instead of path.

/cc @pslaughter @mishunov

Edited Aug 25, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading