The correct image is displayed in the field but the path saved in the image field is ../../../assets/image.jpg instead of the expected src/assets/image.jpg.
Desktop (please complete the following information):
Windows 10
Possible Cause
This might be related in some way to the fact that I have to select the English subfolder "[[workspace]]/src/content/posts/en",
**Describe the bug**
Image selector is saving the wrong path for Astro.
**To Reproduce**
Steps to reproduce the behavior:
1. Configure `frontmatter.json` to contain the following:
```json
...
"frontMatter.content.pageFolders": [
{
"title": "posts",
"path": "[[workspace]]/src/content/posts/en",
"contentTypes": [
"post"
]
}
],
"frontMatter.content.publicFolder": {
"path": "src/assets",
"relative": true
},
"frontMatter.taxonomy.contentTypes": [
...
{
"title": "Image",
"name": "Image",
"type": "image",
"isPreviewImage": true
},
]
...
```
2. Edit a Markdown document
3. Select an image from the `src/assets` directory
**Expected Behavior**
The correct image is displayed in the field but the path saved in the image field is `../../../assets/image.jpg` instead of the expected `src/assets/image.jpg`.
**Desktop (please complete the following information):**
Windows 10
**Possible Cause**
This might be related in some way to the fact that I have to select the English subfolder `"[[workspace]]/src/content/posts/en",`
<!-- github-sync-id:2135775630 -->
There is nothing wrong with the path as this is how it needs to be for Astro:
<!-- Local image stored in src/assets/ --><!-- Use a relative file path or import alias -->

<!-- Image stored in public/images/ --><!-- Use the file path relative to public/ -->

<!-- Remote image on another server --><!-- Use the full URL of the image -->

There is nothing wrong with the path as this is how it needs to be for Astro:
```markdown
<!-- Local image stored in src/assets/ -->
<!-- Use a relative file path or import alias -->

<!-- Image stored in public/images/ -->
<!-- Use the file path relative to public/ -->

<!-- Remote image on another server -->
<!-- Use the full URL of the image -->

```
> Source: https://docs.astro.build/en/guides/images/#images-in-markdown-files
<!-- github-comment-id:1945582935 -->
adam
changed title from Issue: Incorrect path saved in front matter image field by image selector to Issue: Incorrect path saved in front matter image field by image selector 2026-10-27 13:21:42 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Describe the bug
Image selector is saving the wrong path for Astro.
To Reproduce
Steps to reproduce the behavior:
frontmatter.jsonto contain the following:src/assetsdirectoryExpected Behavior
The correct image is displayed in the field but the path saved in the image field is
../../../assets/image.jpginstead of the expectedsrc/assets/image.jpg.Desktop (please complete the following information):
Windows 10
Possible Cause
This might be related in some way to the fact that I have to select the English subfolder
"[[workspace]]/src/content/posts/en",There is nothing wrong with the path as this is how it needs to be for Astro:
Issue: Incorrect path saved in front matter image field by image selectorto Issue: Incorrect path saved in front matter image field by image selector