Skip to content

fix: handle edge case when getting GitLab URL for unsaved file

Tomas Vik requested to merge tv/2023-06/fix-copy-link into main

When we tried to copy a link for an unsaved file, the filepath was Untitled-1 and our logic expected that this is a file within the repository.

This MR handles the edge case and shows a warning.

before after
copy-link-before copy-link-after
Edited by Tomas Vik

Merge request reports