From 944a7967f6ec054e7899cb71fb5f20850978fb23 Mon Sep 17 00:00:00 2001
From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org>
Date: Wed, 10 Feb 2016 13:09:26 +0900
Subject: [PATCH] Issue #2664882 by chx: RedirectDestinationInterface::get is
 factually wrong

---
 .../Drupal/Core/Routing/RedirectDestinationInterface.php  | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/core/lib/Drupal/Core/Routing/RedirectDestinationInterface.php b/core/lib/Drupal/Core/Routing/RedirectDestinationInterface.php
index ac2612b952f2..d68f4c122cea 100644
--- a/core/lib/Drupal/Core/Routing/RedirectDestinationInterface.php
+++ b/core/lib/Drupal/Core/Routing/RedirectDestinationInterface.php
@@ -34,7 +34,13 @@ interface RedirectDestinationInterface {
   public function getAsArray();
 
   /**
-   * Gets the destination as URL.
+   * Gets the destination as a path.
+   *
+   * To convert to a URL suitable for
+   * \Symfony\Component\HttpFoundation\RedirectResponse::__construct() use
+   * @code
+   * \Drupal\Core\Url::fromUserInput(\Drupal::destination()->get())->setAbsolute()->toString()
+   * @endcode
    *
    * @return string
    */
-- 
GitLab