major
minor
defect
major
minor
For example, a link to the API documentation doesn't work.
The reason for this is that in wysiwyg.js, within the addTLObjectClickListener function, a check is performed to determine whether the linked page is an internal page by checking if target.host === window.location.host. However, ` target.host ` isn’t precise enough, since it refers to ` https://dev.top-logic.com/ `. All pages under this host (including, as in this case, pages with https://dev.top-logic.com/doc...) are treated as TL-Doc pages, meaning the editor attempts to open the corresponding page. However, this should only affect links that point to https://dev.top-logic.com/documentation.
Improvement
TLObjectLinks can be easily identified by their class, `tlobject `. This class is now also used to determine the behavior when a link is clicked.
Test
- Adding and opening TLObject links: The corresponding page must open in TL-Doc.
- Add and open an external link: The corresponding page must open
- Insert and open an external link to the TL documentation (e.g., https://dev.top-logic.com/doc/TL-7-latest/javadoc/#com.top_logic.graph.server.package-info ): The corresponding page must open.