Unable to add internal links to "some" collections via richtext link component

default discord avatar
wiesson
3 months ago
8

Somehow not all collections are available within the link component. Do I need to clear some kind of cache?



I tried to add enableRichTextLink: true, but it doesn't make any difference

  • default discord avatar
    sen.ooo
    3 months ago

    What version of Payload you are running? Somehow I updated from 1.4 to 1.9, it show more collections that I can link to. 🤔

  • default discord avatar
    wiesson
    3 months ago

    hmm, I'm using always the latest version

  • default discord avatar
    mvdve
    3 months ago

    I am running into the same issue, not all related content is returned by the API. The strange thing is that the query contains a page parameter. like:



    {
        "docs": [],
        "totalDocs": 3,
        "limit": 10,
        "totalPages": 1,
        "page": 2,
        "pagingCounter": 11,
        "hasPrevPage": true,
        "hasNextPage": false,
        "prevPage": 1,
        "nextPage": null
    }


    There are 3 results, but it is quering page 2, so the docs are empty. Maybe i'm wrong but prevPage should always be null and page 1.



    And the selected page is inceased by 1 on every input change.

  • default discord avatar
    mvdve
    3 months ago

    @jarrod_not_jared sounds exactly the same indeed, thanks

  • default discord avatar
    wiesson
    3 months ago

    You are right @mvdve - same issue for me.


    limit: 10
    page: 71
  • discord user avatar
    dribbens
    Payload Team
    3 months ago

    This should be resolved as of v1.10.0


    Let me know if updating Payload doesn't resolve it for you.

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.