# Cursor Incorrectly Modifies URLs in .mdc Files by Adding 'mdc:' Prefix

**URL:** <https://forum.cursor.com/t/cursor-incorrectly-modifies-urls-in-mdc-files-by-adding-mdc-prefix/76041>\
**Category:** Bug Reports\
**Created:** [April 7, 2025, 8:32am UTC](https://forum.cursor.com/t/cursor-incorrectly-modifies-urls-in-mdc-files-by-adding-mdc-prefix/76041 "2025-04-07T08:32:22Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tormi](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/tormi/32/44452_2.png) [@tormi](https://forum.cursor.com/u/tormi)\
**Post date:** [April 7, 2025, 8:32am UTC](https://forum.cursor.com/t/cursor-incorrectly-modifies-urls-in-mdc-files-by-adding-mdc-prefix/76041/1 "2025-04-07T08:32:22Z")

</div>

🐞 **Bug Description:**  
Cursor is automatically and incorrectly modifying URLs in `.mdc` files by changing `https://` to `mdc:https:/`. This creates invalid URLs and breaks documentation links.

Example from planningmap.mdc file:

- Original URL: `https://gis.sauevald.ee/arcgis/rest/services`
- Modified by Cursor to: `mdc:https:/gis.sauevald.ee/arcgis/rest/services`

The issue affects all URLs in `.mdc` files, making them invalid and breaking external links in documentation.

🔄 **Steps to Reproduce:**

1. Create or open a `.mdc` file in Cursor
2. Add a URL starting with `https://`
3. Save the file
4. Observe that Cursor has automatically prefixed the URL with `mdc:` and removed a forward slash

📷 **Example from planningmap.mdc:**

```plaintext
### ArcGIS Services

The PlanningMap component can display layers from the following ArcGIS REST services:

- **Main Services Directory** : [https://gis.sauevald.ee/arcgis/rest/services](mdc:https:/gis.sauevald.ee/arcgis/rest/services)

```

💻 **Environment:**

- OS: macOS 24.4.0
- Cursor Version: Latest (as of April 2025)

🚫 **Impact:**  
Medium severity - While not preventing the use of Cursor, this issue:

- Breaks documentation links
- Creates invalid URLs
- Requires manual correction of URLs
- Affects documentation readability and maintenance

✅ **Forum Check:**  
I’ve checked the forum and haven’t found any existing reports of this specific URL modification issue in `.mdc` files. There is an open question available related to the same issue: [What is "mdc:" link schema?](https://forum.cursor.com/t/what-is-mdc-link-schema/60381)

**Additional Notes:**

- The issue appears to be consistent across all `.mdc` files
- The modification happens automatically upon saving
- The pattern is consistent: `https://` becomes `mdc:https:/` (note the missing slash)
- This appears to be an unintended URL transformation specific to `.mdc` file handling

---

_[View the full topic](https://forum.cursor.com/t/cursor-incorrectly-modifies-urls-in-mdc-files-by-adding-mdc-prefix/76041)._
