Facility to automatically determine alternative location from source filename.

Description

There exists legacy sites that have been deployed for a while before being migrated to Guise Mummy. They may have many files in the format foobar.xhtml or foobar.html. With Guise Mummy these files may be deployed as foobar.html or even as foobar if clean URLs ("bare names") are configured from GUISE-52.

It is desirable that the new site deployed from Guise Mummy would have redirects to the old page names, as allows in GUISE-88. However it would be difficult to go through the entire site and add an mummy:altLocation property manually for each page.

Add a facility (perhaps using a mummy.autoAltLocation flag) to automatically add a mummy:altLocation to pages if their names change during mummification. This should be simple to implement (at least for files) after GUISE-125, as AbstractFileMummifier.loadDescription() now passes both the source and target files; the method can simply detect if the name changes and add a mummy:altLocation property if needed. Any existing mummy:altLocation property would be left as-is, allowing redirects to be overridden on a per-page basis.

Environment

None

Assignee

Garret Wilson

Reporter

Garret Wilson

Labels

None

Components

Priority

Minor
Configure