inveniosoftware / react-invenio-forms

React component library for Formik components.
https://react-invenio-forms.readthedocs.io
MIT License
0 stars 27 forks source link

URLs on same domain converted to relative URLs and broken depending on where they are displayed #251

Closed ptamarit closed 3 months ago

ptamarit commented 3 months ago

Package version (if known): 4.0.0

Describe the bug

By default, TinyMCE is converting URLs on the same domain name than the host to relative URLs. This is the problem since the URL for the edition of a RichInputField might not be the same URL at which the rich text content is displayed.

Steps to Reproduce

  1. Go to a community on which you have edit rights
  2. Go to Settings > Pages
  3. In the About section, links on the same domain as the instance (e.g. a link to another community), and links to other domains
  4. Save the changes
  5. Visit the read-only version of the community about page
  6. The link to the other community is broken

Expected behavior

The link to the same domain should work regardless of where they are displayed.

Screenshots (if applicable)

Screenshot showing a link converted to a relative URL

Additional context

N/A