# Link Resolver issues

**URL:** <https://community.prismic.io/t/link-resolver-issues/4153>\
**Category:** Developing with Prismic\
**Tags:** gatsby\
**Created:** [February 18, 2021, 8:55pm UTC](https://community.prismic.io/t/link-resolver-issues/4153 "2021-02-18T20:55:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergey](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@sergey](https://community.prismic.io/u/sergey)\
**Post date:** [February 18, 2021, 8:55pm UTC](https://community.prismic.io/t/link-resolver-issues/4153/1 "2021-02-18T20:55:27Z")

</div>

Hello to everyone reading this, appreciate your response.  
Could you please elaborate how actually linkResolver works with gatsby-source-prismic?  
As far as I understand, during build process linkResolver is being used by the g-s-p, and url and document (content relation) fields are inserted via prismic-dom. Then these fields can be accessed in playground.

Indeed, during development run I see linkResolver resolving every page mentioned, but no fields are updated or inserted into dom. Of course I can attach linkResolver into every but this is not the way it should work, as far as I understand.

Any ideas what could be missing? I can see pages being resolved during build via console.log but where do I look for dom updates/injections?

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [February 19, 2021, 2:44am UTC](https://community.prismic.io/t/link-resolver-issues/4153/2 "2021-02-19T02:44:02Z")

</div>

Hello @sergey, thanks for reaching out!

[The Link Resolver](https://prismic.io/docs/technologies/link-resolver-gatsby) helps you generate the links to navigate to internal documents inside your website.

Since routing is specific to your site, you need to define a Link Resolver and provide it to some of the fields' methods. For example, if you have a Rich text field inside a Homepage document that links to a blog post, you need to pass the link resolver to the Rich text method. This way, when the link is rendered, it redirects to the correct page:

```auto
<RichText render={document.description.raw} serializeHyperlink={GatsbyLink} />

```

Here is the RichText helper that renders your content correctly.

---

<div class="post-metadata">

**Author:** ![sergey](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@sergey](https://community.prismic.io/u/sergey)\
**Post date:** [February 19, 2021, 5:22pm UTC](https://community.prismic.io/t/link-resolver-issues/4153/4 "2021-02-19T17:22:09Z")

</div>

Had to clone working example of repo to find out what's the reason.  
I placed schema file into folder but did not mention it gatsby-config, which lead to prismic not applying link resolver to the elements of this content type.

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [February 20, 2021, 8:53pm UTC](https://community.prismic.io/t/link-resolver-issues/4153/5 "2021-02-20T20:53:16Z")

</div>

I see, and after you declared the path for the schemas in the gatsby-config, the problem went away?

Let us know if you need help with this or anything else.

Cheers

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [March 2, 2021, 6:00am UTC](https://community.prismic.io/t/link-resolver-issues/4153/6 "2021-03-02T06:00:20Z")

</div>

closed on March 2, 2021, 6:00am UTC, flag & select 'Something Else' to reopen.

This issue has been closed due to inactivity. [Flag to reopen](https://community.prismic.io/t/re-open-a-thread/2175).

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 4:41pm UTC](https://community.prismic.io/t/link-resolver-issues/4153/7 "2021-12-09T16:41:18Z")

</div>

Opened on December 9, 2021, 4:41pm UTC


