Before attempting to install this module, you must have cweagans/composer-patches installed to automatically patch Drupal core. If it's not installed, run:
If you're using the 1.x version of the plug-in, you'll also need to run:
composer config extra.enable-patching true
composer config --json --merge extra.patchLevel '{"drupal/core": "-p2"}'
Note that you should remove these last two once you upgrade to cweagans/composer-patches:^2.0 as 2.0 no longer uses that configuration.
Installing this module without patching Drupal core is not currently supported and will likely not function correctly. See Developing/Drupal core patches for a list.
Drupal core Navigation before 11.2
If installing on Drupal core older than 11.2, the Navigation module requires an additional patch that you must add yourself because it doesn't update viewport displacement after RefreshLess navigation:
{
"drupal/core": {
"New navigation does not displace if detached and attached again [#3487905]: https://www.drupal.org/project/drupal/issues/3487905": "https://git.drupalcode.org/project/refreshless/-/raw/a9abd3f0581150115ce17dcf8d80891db6dbb84d/patches/drupal/core/3487905-navigation-displace-detach-attach.patch"
}
}
Then just composer require the latest supported release of this
module and core should be
patched; if patches were not attempted:
- If using
cweagans/composer-patches:^2.0, runcomposer patches-repatch - If using
cweagans/composer-patches:^1.0, try runningcomposer installto give it a nudge to patch.
Please see Requirements for more information.
Finally, have Drupal install this module and it should take over handling page requests.