michael-milette / moodle-filter_filtercodes

FilterCodes filter for Moodle enables content creators to easily customize and personalize course and site content using plain text tags (no HTML). For premium support, contact us at https://www.tngconsulting.ca/contact
https://moodle.org/plugins/filter_filtercodes
GNU General Public License v3.0
30 stars 42 forks source link

Bug: Problems creating button with urlencoded shortcoursename #274

Closed michael-milette closed 9 months ago

michael-milette commented 9 months ago

Prerequisites

What happened?

The following combination of shortcodes don't work when I place it in a page in a course:

{button ../../course/view.php?name={urlencode}{courseshortname}{/urlencode}#section-%7Bsectionid%7D"}{getstring}continue{/getstring}{/button}

What do you think should have happened?

I expected to get a working button.

Steps to reproduce

Place the following combination of shortcodes in a cours page:

{button ../../course/view.php?name={urlencode}{courseshortname}{/urlencode}#section-%7Bsectionid%7D"}{getstring}continue{/getstring}{/button}

Screenshots

No response

Moodle version

All supported versions of Moodle

Installed Moodle UI Language packs.

If other language(s), please specify

No response

Workaround

None

Additional information

No response

System information

Not related to the environment.

Code of Conduct

michael-milette commented 9 months ago

This fix is now available in FilterCodes here on GitHub and will be included in the upcoming release on moodle.org within the next few weeks.