andrewhancox / moodle-filter_translations

8 stars 8 forks source link

Updating mod_page will generate new urls for image/file references #143

Open rjnl opened 2 years ago

rjnl commented 2 years ago

mod_page uses revision id when generating the urls for images/files, eg: "..pluginfile.php/162/mod_page/content/5/lightbulb.svg"

Whenever mod_page is updated, its revision id is incremented. This means that the url of the images in the mod_page filearea will also change. Because of the url change, existing translations for the page will be marked as stale, even when the "content" has not really changed.

image

image