Uploaded image for project: 'Moodle Community Sites'
  1. Moodle Community Sites
  2. MDLSITE-7363

Enable redirections in mediawiki dev docs

XMLWordPrintable

      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:

      1. Edit the mediawiki configuration file.
      2. Find the section where the CarenodiMW extension is configured.
      3. 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).
      4. Save changes

      To test it just:

      1. Visit some page in the mediawiki dev docs that has not been migrated.
      2. Verify (html code) that it doesn't have neither the "rel=canonical" nor the "meta=refresh" tags.
      3. Visit some page in the mediawiki that has been already migrated.
      4. Verify that you get redirected to the new docs page immediately.
      5. 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

            mudrd8mz David Mudrák (@mudrd8mz)
            stronk7 Eloy Lafuente (stronk7)
            David Mudrák (@mudrd8mz) David Mudrák (@mudrd8mz)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.