# How to get backlinks in org-roam-server to work?

**URL:** <https://org-roam.discourse.group/t/how-to-get-backlinks-in-org-roam-server-to-work/547>\
**Category:** Troubleshooting\
**Created:** [July 22, 2020, 4:13pm UTC](https://org-roam.discourse.group/t/how-to-get-backlinks-in-org-roam-server-to-work/547 "2020-07-22T16:13:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![butch\_warns](https://avatars.discourse-cdn.com/v4/letter/b/7feea3/32.png) [@butch\_warns](https://org-roam.discourse.group/u/butch_warns)\
**Post date:** [July 22, 2020, 4:13pm UTC](https://org-roam.discourse.group/t/how-to-get-backlinks-in-org-roam-server-to-work/547/1 "2020-07-22T16:13:40Z")

</div>

Hello all,

i have recently started using org-roam and it quickly lead to me completely reworking my note-taking workflow - What a wonderful tool!  
So far everything seems to work fine and i managed to set up org-protocol to have a clickable graph.

Just one thing doesn’t seem to work right:

In the org-roam-server view under File Viewer some of the backlinks do no work.  
They just give me a " Not Found, The requested URL was not found on this server." and Javascript just says “void(o)”.

I am not experienced enough to troubleshoot this and information relate to this on the internet seems to be scarce…

All backlinks work in the org-roam buffer.

I am using spacemacs develop under osx catalina.

Would be very happy if someone yould point me in the right direction!

Thanks! 🙂

Butch

---

<div class="post-metadata">

**Author:** ![bepolymathe](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/bepolymathe/32/688_2.png) [@bepolymathe](https://org-roam.discourse.group/u/bepolymathe)\
**Post date:** [July 23, 2020, 1:27am UTC](https://org-roam.discourse.group/t/how-to-get-backlinks-in-org-roam-server-to-work/547/2 "2020-07-23T01:27:37Z")

</div>

Is there is something special in your file ? Give an exemple of a error file please ?  
😉

---

<div class="post-metadata">

**Author:** ![butch\_warns](https://avatars.discourse-cdn.com/v4/letter/b/7feea3/32.png) [@butch\_warns](https://org-roam.discourse.group/u/butch_warns)\
**Post date:** [July 23, 2020, 6:45am UTC](https://org-roam.discourse.group/t/how-to-get-backlinks-in-org-roam-server-to-work/547/3 "2020-07-23T06:45:11Z")

</div>

It doens’t seem like there is anything special in the file, as everything works perfectly within Spacemacs. I just modified the default org-roam-capture template to set some variables like “#+STARTUP: latexpreview”  
Where can i find an error file?  
Not well versed in troubleshooting Spacemacs related things yet (I’m getting there…) 🙂  
I also did **org-roam-db-clear** and **org-roam-db-build-cache** , but the error persists.

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [July 24, 2020, 8:24am UTC](https://org-roam.discourse.group/t/how-to-get-backlinks-in-org-roam-server-to-work/547/4 "2020-07-24T08:24:47Z")

</div>

@butch_warns, adding to @bepolymathe’s question, do you know how to look at the HTML source code via your browser’s inspection tool?

If some backlinks work, and some others don’t work, my hunch is that you would observe some anomalies in the `id` attribute of the links that don’t work (see the image from Chrome below).

 ![image](https://global.discourse-cdn.com/free1/uploads/orgroam/original/1X/7e385c612e2b6d854681a51ecb1ba523d01dc3ff.png)

If this is the case, you might like to log an issue in the GitHub of `org-roam-server` project, because it is likely that your issue is caused by the way `org-roam-server` generates this link. Or alternatively, you might be able to work around the issue by naming the files in the way that works.

---

<div class="post-metadata">

**Author:** ![butch\_warns](https://avatars.discourse-cdn.com/v4/letter/b/7feea3/32.png) [@butch\_warns](https://org-roam.discourse.group/u/butch_warns)\
**Post date:** [July 24, 2020, 10:52am UTC](https://org-roam.discourse.group/t/how-to-get-backlinks-in-org-roam-server-to-work/547/5 "2020-07-24T10:52:22Z")

</div>

Hi @nobiot,  
thanks for your reply, the help is much appreciated!

I ckecked the source-code of the HTML links found the problem is not actually the backlinks themselves, but rather links I wrote inside of my notes, which are also displayed in the right frame of the file viewer tab. These are not backlinks but just regular links… Interestingly these links from within my notes all seem to have a leading forward slash in the id attribute.

 ![Bildschirmfoto 2020-07-24 um 12.36.48](https://global.discourse-cdn.com/free1/uploads/orgroam/original/1X/9de1f5b2216750fadea1189b8892279819402ace.png)  
Seems that wrong filepaths are actually the culprit. What can i do to prevent this from happening? All these links were added with **org-roam-insert** at the time of writing my notes.

Best,  
Butch

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [July 24, 2020, 11:42am UTC](https://org-roam.discourse.group/t/how-to-get-backlinks-in-org-roam-server-to-work/547/6 "2020-07-24T11:42:23Z")

</div>

In the note, how is “Kompressor auf Basis von Elektronenröhren” linked?

You can use `org-toggle-link-display` to make the text visible.

In my example earlier, the link looks like this:

 ![image](https://global.discourse-cdn.com/free1/uploads/orgroam/original/1X/a288c46584a4ea052babf0a4fd2ea72a9419d723.png)

---

<div class="post-metadata">

**Author:** ![butch\_warns](https://avatars.discourse-cdn.com/v4/letter/b/7feea3/32.png) [@butch\_warns](https://org-roam.discourse.group/u/butch_warns)\
**Post date:** [July 24, 2020, 12:13pm UTC](https://org-roam.discourse.group/t/how-to-get-backlinks-in-org-roam-server-to-work/547/7 "2020-07-24T12:13:54Z")

</div>

Looking at the link within my note the filepath doesn’t feature the leading forward slash.

 ![Bildschirmfoto 2020-07-24 um 14.06.56](https://global.discourse-cdn.com/free1/uploads/orgroam/original/1X/2d1303a9fe147aebcae9beeea2aa6f33771ed7c3.png)  
The link works from withing roam servers preview window in the graph (database network) tab and even in the file viewer tab, just not under the backlinks section in the right hand frame.  
Seems like something i could potentially just live with (if i have to…)

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [July 24, 2020, 12:36pm UTC](https://org-roam.discourse.group/t/how-to-get-backlinks-in-org-roam-server-to-work/547/8 "2020-07-24T12:36:16Z")

</div>

Weird. One thing you could try is to update `org-roam-server`. If that does not fix the issue, I think it’s worth reporting it to `org-roam-server` project. As you can see from my example above, I can’t reproduce the problem… (I might try creating a file that begins with a number like you, but that’s just a standard way for Org-roam…)

---

<div class="post-metadata">

**Author:** ![butch\_warns](https://avatars.discourse-cdn.com/v4/letter/b/7feea3/32.png) [@butch\_warns](https://org-roam.discourse.group/u/butch_warns)\
**Post date:** [July 24, 2020, 1:06pm UTC](https://org-roam.discourse.group/t/how-to-get-backlinks-in-org-roam-server-to-work/547/9 "2020-07-24T13:06:41Z")

</div>

Weird indeed. I will try reporting the issue to the **org-roam-server** project.  
Thanks again for your help!
