GeoNode / geonode

GeoNode is an open source platform that facilitates the creation, sharing, and collaborative use of geospatial data.
https://geonode.org/
Other
1.44k stars 1.12k forks source link

rich text editor shortens URLs to own instance in a wrong way #8787

Open gannebamm opened 2 years ago

gannebamm commented 2 years ago

Expected Behavior

If I use links for other resources on my instance inside the metadata abstracts rich text editor the links do follow my given URL.

Actual Behavior

The links will get shortened in the wrong way. See this example: https://development.demo.geonode.org/documents/214

Steps to Reproduce the Problem

  1. create a resource
  2. use the rich text metadata abstract editor and put in links to other resources (eg documents)
  3. see how they will get shortened in a wrong way (documents/ is missing)

Specifications

giohappy commented 2 years ago

@gannebamm it looks like a bug in Tinymce. Look at the video below. Even if I change the links in source code mode and the source code is reopened they appear truncated.

tinymce_bug_links

gannebamm commented 2 years ago

You are right. The only way I was able to fix it was to fiddle around in the PostgreSQL but than the other fields will not get regenerated like CSW abstract and whatever else there is.

giohappy commented 2 years ago

@gannebamm I suspect we will have to investigate if it's a gun in the specific version of TinyMCE.

gannebamm commented 2 years ago

@giohappy This seems to be the corresponding tinymce issue: https://github.com/tinymce/tinymce/issues/7387#issuecomment-972187770

giohappy commented 2 years ago

nice spot @gannebamm we can test the proposed configuration by adding it here