PagesWithoutFileExtPlugin

The PagesWithoutFileExtPlugin plugin creates aliases without the file extension for every page in the Mosaic filesystem. This allows pages to be retrieved from the filesystem without specifying the extension e.g., .mdx.

The plugin also modifies the route metadata property of a page to point to the shorter alias.

Priority

This plugin runs with a priority of 1. It must run after the $AliasPlugin.

Adding to Mosaic

Add the following to the plugins collection:

plugins: [
  {
    modulePath: '@jpmorganchase/mosaic-plugins/PagesWithoutFileExtPlugin',
    options: {},
    priority: 1
  }
  // other plugins
];
Mosaic BETA

Coming soon