# Prismic Toolbar doesn’t appear + Preview doesn’t work

**URL:** <https://community.prismic.io/t/prismic-toolbar-doesn-t-appear-preview-doesn-t-work/6673>\
**Category:** Prismic for Content Creators\
**Created:** [August 18, 2021, 7:13pm UTC](https://community.prismic.io/t/prismic-toolbar-doesn-t-appear-preview-doesn-t-work/6673 "2021-08-18T19:13:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fsk1997](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@fsk1997](https://community.prismic.io/u/fsk1997)\
**Post date:** [August 18, 2021, 7:13pm UTC](https://community.prismic.io/t/prismic-toolbar-doesn-t-appear-preview-doesn-t-work/6673/1 "2021-08-18T19:13:21Z")

</div>

Dear Prismic community,

I am running Prismic with GatsbyJS using `gatsby-source-prismic` and `gatsby-plugin-prismic-previews`, and my site is hosted on Gatsby Cloud

My Prismic toolbar is not appearing despite signed in to my repo. On top of that, I couldn’t preview the content change via localhost despite having Previews already set up on settings (doesn’t redirect me to the page after clicking the eye icon, it stops at ‘Loading Preview…’ page).

Below are my code which should responsible to the toolbar appearance.

preview.js

```auto
import * as React from 'react'
import { withPrismicPreviewResolver } from 'gatsby-plugin-prismic-previews'
import { linkResolver } from "../utils/linkResolver";

const PreviewPage = () => {
  return (
    <main>
      <h1>Loading preview...</h1>
    </main>
  )
}

export default withPrismicPreviewResolver(PreviewPage, [
  {
    repositoryName: 'my-repo',
    linkResolver: linkResolver,
  },
])

```

linkResolver.js

```auto
module.exports = {
  apiEndpoint: 'https://my-repo.cdn.prismic.io/api/v2',
  repoName: "my-repo",
  linkResolver: function(doc) {
    if (doc.type === 'page') return "/" + doc.uid
    if (doc.type === 'work') return "/work/" + doc.uid  
    return "/doc" + doc.uid
    }
}

```

At the end of my {prismicPage.url}.js

```auto
...
export default withPrismicPreview(PageTemplate, [
  {
    repositoryName: 'my-repo',
    linkResolver: linkResolver,
  },
])

```

At the end of my 404.js

```auto
...
export default withPrismicUnpublishedPreview(
  NotFoundPage,
  [
    {
      repositoryName: 'my-repo',
      linkResolver: linkResolver,
      componentResolver: componentResolverFromMap({
         page: PageTemplate,
         work: WorkTemplate,
      }),
    },
  ],
)

```

I couldn't see what else I'm missing here. Let me know if there's any else info that I should provide.

Thanks in advance!

Best Regards,  
Fong

---

<div class="post-metadata">

**Author:** ![Fares](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@Fares](https://community.prismic.io/u/Fares)\
**Post date:** [August 20, 2021, 9:32am UTC](https://community.prismic.io/t/prismic-toolbar-doesn-t-appear-preview-doesn-t-work/6673/3 "2021-08-20T09:32:56Z")

</div>

Hi there,

Welcome to the Prismic community,  
Some other users are reporting an issue with the preview that might be related to this issue.

Would you mind taking a screenshot of the cookies you have when starting a preview to check if this issue impacts you:

[https://community.prismic.io/t/toolbar-preview-cookie-issue/6608/8](https://community.prismic.io/t/toolbar-preview-cookie-issue/6608/8)

Looking forward to your reply,  
Fares

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [August 20, 2021, 1:38pm UTC](https://community.prismic.io/t/prismic-toolbar-doesn-t-appear-preview-doesn-t-work/6673/4 "2021-08-20T13:38:54Z")

</div>

A post was merged into an existing topic: [Toolbar Preview cookie issue](https://community.prismic.io/t/toolbar-preview-cookie-issue/6608/23)

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [August 20, 2021, 1:37pm UTC](https://community.prismic.io/t/prismic-toolbar-doesn-t-appear-preview-doesn-t-work/6673/5 "2021-08-20T13:37:27Z")

</div>

It appears to be the same issue and we are investigating. Please refer to that thread for further updates.

> [@Toolbar Preview cookie issue](https://community.prismic.io/t/toolbar-preview-cookie-issue/6608/3):
>
> Hi, we have the same issue since a few days. Nothing changed on our side. I don't know if this link is still up to date but this troubleshooting guide doesn't help : [Troubleshooting: Previews](https://community.prismic.io/t/troubleshooting-previews/5449) We also have the {%22\_tracker%22:%22z9Ng7jyV%22} value for io.prismic.preview Cookie. Deleting it doesn't change a thing. Can anyone from Prismic team can help us ?

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [August 20, 2021, 1:37pm UTC](https://community.prismic.io/t/prismic-toolbar-doesn-t-appear-preview-doesn-t-work/6673/6 "2021-08-20T13:37:34Z")

</div>



---

<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, 12:35pm UTC](https://community.prismic.io/t/prismic-toolbar-doesn-t-appear-preview-doesn-t-work/6673/7 "2021-12-09T12:35:54Z")

</div>


