# Problem with links when there are multiple files with same name

**URL:** <https://forum.obsidian.md/t/problem-with-links-when-there-are-multiple-files-with-same-name/68944>\
**Category:** Help\
**Created:** [October 7, 2023, 2:31pm UTC](https://forum.obsidian.md/t/problem-with-links-when-there-are-multiple-files-with-same-name/68944 "2023-10-07T14:31:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thebjornidentity](https://forum.obsidian.md/user_avatar/forum.obsidian.md/thebjornidentity/32/54900_2.png) [@thebjornidentity](https://forum.obsidian.md/u/thebjornidentity)\
**Post date:** [October 7, 2023, 2:31pm UTC](https://forum.obsidian.md/t/problem-with-links-when-there-are-multiple-files-with-same-name/68944/1 "2023-10-07T14:31:44Z")

</div>

Hey everybody!

I’m a total newbie, and English is not my first language – so please be a bit patient with me.

I have a problem. I have an Obsidian vault in which there are a couple of notes which have the same name, though they are placed in different folders.

When I try to link to one of these notes, I use the format [[folder/folder/note|Name I want to see]], as you can see in this image:

 ![image0](https://forum.obsidian.md/uploads/default/original/3X/8/8/88550f0ee98b364084439d5b88f1fd552b970609.jpeg)

However, when I leave the “editing mode”, I get this result:

 ![image1](https://forum.obsidian.md/uploads/default/original/3X/c/f/cf24c458810a874a9a7944812b2364957596547b.jpeg)

Now, as you probably understand, I don’t want it to look like that. I’d like to see only what I write after the “|” in the brackets. What am I doing wrong?

I’d really appreciate any help. (Also, please forgive me if this text is incomprehensible.)

---

<div class="post-metadata">

**Author:** ![I-d-as](https://forum.obsidian.md/user_avatar/forum.obsidian.md/i-d-as/32/59965_2.png) [@I-d-as](https://forum.obsidian.md/u/I-d-as)\
**Post date:** [October 7, 2023, 4:51pm UTC](https://forum.obsidian.md/t/problem-with-links-when-there-are-multiple-files-with-same-name/68944/2 "2023-10-07T16:51:46Z")

</div>

You’re not doing anything wrong. It is just that the pipe character used within the link to denote the following display text gets interpreted as being a pipe character used to define the end of that cell in the table.

If you add a `\` before the pipe character, it will work correctly. As an example, see some of the links in the table here: [Regular Expressions in Obsidian (copied from mdn web docs)](https://forum.obsidian.md/t/regular-expressions-in-obsidian-copied-from-mdn-web-docs/38527).

Good luck!

---

<div class="post-metadata">

**Author:** ![thebjornidentity](https://forum.obsidian.md/user_avatar/forum.obsidian.md/thebjornidentity/32/54900_2.png) [@thebjornidentity](https://forum.obsidian.md/u/thebjornidentity)\
**Post date:** [October 7, 2023, 5:19pm UTC](https://forum.obsidian.md/t/problem-with-links-when-there-are-multiple-files-with-same-name/68944/4 "2023-10-07T17:19:42Z")

</div>

Thank you so much! This worked splendidly 🙂

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [October 14, 2023, 5:20pm UTC](https://forum.obsidian.md/t/problem-with-links-when-there-are-multiple-files-with-same-name/68944/5 "2023-10-14T17:20:03Z")

</div>

Closed on October 14, 2023, 5:20pm UTC

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