-
Bug
-
Resolution: Not a bug
-
Minor
-
None
-
2.3.2
-
None
-
MOODLE_23_STABLE
If I create a field "URL" in the dataform module. And I then try to use that field in a view (editor enabled), the link gets destroyed by the editor and/or a moodle filter. The tag for the url field: [[myurl]] gets urlencoded. Saving a view with the editor disabled (standard html forms in the user profile) works only for the first time it is saved. When the view is edited/changed again, the tag [[myurl]] is destroyed and will not work when saved again.
Example of a filtered tag:
href="http://www.virtuelle-ph.at/%5B%5BAnmeldelink2%5D%5D"
Neither href=[[myurl]] nor href="[[myurl]]" does work properly. (The first time it is created it OK, but on editing a view again, all the tags have to be replaced.
What could help is the following:
->possibility to turn off the editor (does not solve the problem entirely)
->change the URL field behaviour: Possibility to add linktext, and style classes to the link. But also keep in mind, that in some cases only the url is needed, not the a tag (in forms...)
->disable urlencode filtering of the text of a view.
->Perhaps take a look at how the database activity handles the url field?
How to reproduce:
Create field URL
Create a view (matrix)
Save the view (Save changes, do not use Save and continue)
Create an entry
Edit the view again -> [[myurl]] is destroyed