Problem/Motivation

When the user uses the edit button on /admin/structure/entityqueue/{queue}/{subqueue} on an instalation without domain when the node is saved the result is an error like this:

"Redirects to external URLs are not allowed by default, use \Drupal\Core\Routing\TrustedRedirectResponse for it."

In my case the home of drupal have the following url http://localhost:8888/drupal-site/web/ as a result the $base_path is /drupal-site/web/ but Drupal's services \Drupal::service('path.current')->getPath() does not return a patch with the correct base patch so is necessary to use \Drupal::request()->getRequestUri() to get the correct destination.

Comments

MaxMendez created an issue. See original summary.

maxmendez’s picture

  • amateescu committed 5b1b3e8 on 8.x-1.x authored by MaxMendez
    Issue #3195163 by MaxMendez: Error on destination parameter on Edit...
amateescu’s picture

Looks good to me :) Committed to 8.x-1.x, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.