-
Task
-
Resolution: Fixed
-
Medium
-
None
This is a followup of MDLSITE-7049, where a custom mediawiki extension was installed and configured to provide automatic rel=canonical tags for already migrated pages.
In that issue we left, on purpose, the 2nd feature of the extension (to provide automatic meta=refresh tags) disabled.
This issue is about to enable it and verify that it's working as expected. Steps should be:
- Edit the mediawiki configuration file.
- Find the section where the CarenodiMW extension is configured.
- Just modify the $wgCarenodiMW_refresh_regexp setting (now empty) to be 100% the same than the $wgCarenodiMW_canonical_regexp one. With that, redirects will start to happen, with zero pause (that's another setting in the file, but it seems that 0 is the best behaviour).
- Save changes
To test it just:
- Visit some page in the mediawiki dev docs that has not been migrated.
- Verify (html code) that it doesn't have neither the "rel=canonical" nor the "meta=refresh" tags.
- Visit some page in the mediawiki that has been already migrated.
- Verify that you get redirected to the new docs page immediately.
- Optional, with curl or any other tool, and disabling to follow redirects, inspect the html code and verify that it has both the "rel=canonical" and "meta=refresh" tags pointing to the correct new dev docs page.
That's all, ciao
- has been marked as being related by
-
MDL-77708 Update references from docs.moodle.org/dev/ to moodledev.io/
-
- Closed
-
- has to be done after
-
MDLSITE-7049 Install the canonical and refresh Mediawiki extension in dev docs
-
- Resolved
-