MDC links to local files do not work if you have multiple project folders

Thanks for reporting a bug you have found in Cursor!
Please add the following info to help us diagnose your issue:

:white_check_mark: Check the forum to ensure the issue hasn’t been reported already
Nothing for mdc file links

:lady_beetle: Provide a clear description of the bug
vscode project with multiple project folders, the cursor rules are in the one I primarily work in. If there is an mdc link to a local file in the folder (like a another rule to chain), anytime you open the file it will append the project folder and the link will break to the @ mentioned file. Looking at the raw file, it shows something like this for each time you saved it, so you cannot edit the file without changing the link.
[000-cursor-rules.mdc](mdc:project_folder/project_folder/project_folder/.cursor/rules/000-cursor-rules.mdc)

If its a single folder and the link is maintained.

:arrows_counterclockwise: Explain how to reproduce the bug (if known)
as above

:computer: Tell us your operating system and your Cursor version (e.g., Windows, 0.x.x).
Version: 0.45.15
VSCode Version: 1.96.2
Commit: a2826398d8d8197cad72fb0cfdc1f472aa7cf050
Date: 2025-02-19T23:45:10.453Z (3 days ago)
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.3.0

:no_entry_sign: Tell us if the issue stops you from using Cursor.
no, but annoying.

Doesnt look like we can use vs code environment variables like workspace to tell cursor where to look

It also breaks url links
[Markdown Guide](mdc:project_folder/project_folder/https:/www.markdownguide.org)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.