Link with query parameter option #209
-
Hi, What is the expected behavior of the proposed feature? I already created a feature request on CKEditor's github, but it does not seem to gather enough interest. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
If the URL was created via “Link to an entry”, you can add a custom URL fragment before the
On the front-end, that will result in:
If you need to remove the
(Note that CKEditor 4.0.0 - 4.0.3 had a bug where custom URL fragments weren’t outputting correctly on the front-end, so if this is for Craft 5/CKEditor 4, you will need to update to CKEditor 4.0.4 for that to work.) |
Beta Was this translation helpful? Give feedback.
-
Thanks @brandonkelly! |
Beta Was this translation helpful? Give feedback.
If the URL was created via “Link to an entry”, you can add a custom URL fragment before the
#entry:…
one that is added automatically. For example:On the front-end, that will result in:
If you need to remove the
#entry:…
fragment altogether. At which point the URL will just be saved to the field data verbatim, as if you had entered the URL manually via “Insert link”.(Note that CKEditor 4.0.0 - 4.0.3 had a bug where custom URL fragments weren’t outputting correctly on the front-end, so if this is for Craft 5/CKEditor 4, you wi…