跳转到主要内容

Link previews

Where do they appear?

  • Text (and Collectives pages, Notes, Deck card comments, Files comments etc...)

    • Directly in the document content, next to the links
    • Only one link preview per paragraph is rendered
    • Custom widgets can be rendered
  • Talk

    • In the messages
    • Only one link preview per message is rendered
    • Custom widgets can be rendered
  • Nextcloud Office

    • In the document content when hovering on links
    • Custom widgets are not rendered

How does it work?

The Nextcloud frontend asks the server to resolve the links via an API request. A rich object is returned as a response and is used by the frontend to render the preview.

The apps can optionally register a custom reference widget to render a specific rich object type (on the links it supports). Therefore the apps have complete freedom over how some previews look like.