next-drupal
next-drupal copied to clipboard
drupal/decoupled_router patch install failed
Package containing the bug
next-drupal (NPM package)
Describe the bug
A clear and concise description of what the bug is.
- It's not possible to apply the drupal/decoupled_router patch when installing drupal
- A call to drupal.translatePathFromContext always returns null and results to every route handle by slug returning 404.
Steps to reproduce:
- First, install drupal and apply drupal/decoupled_router patch
-
composer create-project drupal/recommended-project drupal-site
-
composer require drupal/next
-
Open your Drupal composer.json file.
-
Add the following patches under "extra". "extra": { // highlight-start "patches": { "drupal/subrequests": { "Get same results on different request": "https://www.drupal.org/files/issues/2019-07-18/change_request_type-63049395-09.patch" }, "drupal/decoupled_router": { "Unable to resolve path on node in other language than default": "https://www.drupal.org/files/issues/2022-11-30/decouple_router-3111456-resolve-language-issue-58.patch" } }, // highlight-end }
-
composer require cweagans/composer-patches
- Then, a call to drupal.translatePathFromContext always returns null and results to every route handle by slug returning 404.