Bugs
Closed

Linking to an object whose title contains “/” creates a new empty object instead

I came across the issue while using Claude with the Capacities Model Context Protocol (MCP) connector.

What happened
I asked Claude to link a note to an existing object with a title in the form “Person A / Person B”. Instead of linking to it, the connector created a new, empty object with the same title. In the same session, links to objects without a “/” in the title worked as expected.

Expected
The link should go to the existing object, whatever characters are in its title.

Workaround
Adding the link by hand in the app works.

Suggestion
It may help to match on the object ID rather than the title, or to handle special characters such as “/” when matching titles.

3 Comments

Sign in to comment

AG
Andy Goodacre·2 days ago(edited)

Thanks for the reply and the tip about the [[object type/]] syntax.

I tested both forms through the MCP connector this morning, using an existing object of a custom type (“Category”) titled “Alpha / Beta”. In body text, [[Alpha / Beta]] and [[Category/Alpha / Beta]] both linked to the existing object, and [[Category/New Title]] created a new object of that type when there wasn’t one, which is handy.

Where it still fails is in an object-link property. Setting category: [[Alpha / Beta]] on a new object (via createObjectViaMD) created a second, empty “Alpha / Beta” instead of linking to the existing one. With category: [[Category/Alpha / Beta]], it created a new object titled “Category/Alpha / Beta”. The same happened with the value in quotes, and when updating an existing object with updateObjectViaMD. Property links to titles without a “/” work fine.

It looks like property values aren’t matched to existing titles in the same way as body text. Is that something you could look at?

Thanks again,
Andy

AG
Andy Goodacre·2 days ago

Brilliant. Thank you Beth :)

B(
Beth (Team)
Beth (Team)·2 days ago

Hi @Andy Goodacre if you tell Claude to wrap the links in [[]] then it should work as expected. That will always link an existing object. You can also specify [[object type/]] syntax because if it doesn't exist, it'll create one or if you have an object with the same name in multiple types, it'll link to the correct one.

changed status toClosed