Before attempting to install this module, you must allow dependencies to patch Drupal core by running the following commands:
composer require 'cweagans/composer-patches:^1.7 || ^2.0'
composer config extra.enable-patching true
composer config --json --merge extra.patchLevel '{"drupal/core": "-p2"}'
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.