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.
This plugin runs with a priority of 1. It must run after the $AliasPlugin.
This plugin is included in the mosaic config shipped by the Mosaic standard generator. So if you use the below import in your mosaic.config.mjs
file then the plugin is included already:
To add it yourself, add the following to the plugins
collection: