Issue: Paths within frontmatter.json should be relative #210

Closed
opened 2026-10-05 02:33:45 +02:00 by adam · 3 comments
Owner

Describe the bug
Currently the paths in the frontmatter.json file are absolute paths. this cases issues when working in teams and sharing code by using a repository.

To Reproduce

  1. Add Folder to frontmatter
  2. Go to 'frontmatter.json'
  3. the absolute path is stored.

Expected behavior
The path should be relative to the source directory of the project.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10
**Describe the bug** Currently the paths in the frontmatter.json file are absolute paths. this cases issues when working in teams and sharing code by using a repository. **To Reproduce** 1. Add Folder to frontmatter 1. Go to 'frontmatter.json' 1. the absolute path is stored. **Expected behavior** The path should be relative to the source directory of the project. **Screenshots** ![image](https://user-images.githubusercontent.com/15608729/155346910-958e7986-caa4-4fd1-916b-2ff656eb59fa.png) **Desktop (please complete the following information):** - OS: Windows 10 <!-- github-sync-id:1148216291 -->
adam closed this issue 2026-10-05 02:33:45 +02:00
Author
Owner

Thanks @andikrueger this must indeed be a bug on Windows and will be taken care of. All paths should be relative, the workspace path should normally get replaced by [[workspace]] placeholder.

Thanks @andikrueger this must indeed be a bug on Windows and will be taken care of. All paths should be relative, the workspace path should normally get replaced by `[[workspace]]` placeholder. <!-- github-comment-id:1048952595 -->
Author
Owner

@andikrueger there was indeed an extra parsing required for the Windows path. This just got fixed in the latest beta version and will be added to the next main release. Thanks again for opening the issue.

@andikrueger there was indeed an extra parsing required for the Windows path. This just got fixed in the latest beta version and will be added to the next main release. Thanks again for opening the issue. <!-- github-comment-id:1049726890 -->
Author
Owner

Thank you so much for the quick fix. This will help a lot.

Thank you so much for the quick fix. This will help a lot. <!-- github-comment-id:1049765880 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#210