Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

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

default discord avatar
wiesson2 years ago
7

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.ooo2 years 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
    wiesson2 years ago

    hmm, I'm using always the latest version

  • default discord avatar
    mvdve2 years 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
    mvdve2 years ago
    @281120856527077378

    sounds exactly the same indeed, thanks

  • default discord avatar
    wiesson2 years ago

    You are right

    @557183523879124992

    - same issue for me.


    limit: 10
    page: 71
  • discord user avatar
    dribbens
    2 years ago

    This should be resolved as of v1.10.0


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

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.