Render reference link correctly
What does this MR do and why?
Render reference link correctly
In content editor, render URL of the reference link correctly so that it may be opened in a new tab.
Changelog: changed
Screenshots or screen recordings
Screen Recording 2023-06-27 at 18.07.27.mov
How to set up and validate locally
- Enable feature flag
:content_editor_on_issues
. - Create an issue.
- Switch to
rich text
mode. - Add an issue/MR/user reference.
- Try opening the link to the reference in new tab. It will open the correct URL now instead of opening the page you were editing.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #412316 (closed)