next-drupal icon indicating copy to clipboard operation
next-drupal copied to clipboard

drupal/decoupled_router patch install failed

Open salem-cxdesigns opened this issue 1 year ago • 4 comments

Package containing the bug

next-drupal (NPM package)

Describe the bug

A clear and concise description of what the bug is.

  1. It's not possible to apply the drupal/decoupled_router patch when installing drupal
  2. A call to drupal.translatePathFromContext always returns null and results to every route handle by slug returning 404.
drupal patch issue

Steps to reproduce:

  1. 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

  1. Then, a call to drupal.translatePathFromContext always returns null and results to every route handle by slug returning 404.

salem-cxdesigns avatar Jul 16 '24 17:07 salem-cxdesigns