diff --git a/src/Display/DisplayInterface.php b/src/Display/DisplayInterface.php
index 2b6d8c5..7a56a84 100644
--- a/src/Display/DisplayInterface.php
+++ b/src/Display/DisplayInterface.php
@@ -42,12 +42,12 @@ interface DisplayInterface extends PluginInspectionInterface, DerivativeInspecti
   public function getIndex();
 
   /**
-   * Returns the URL of this display.
+   * Returns the base path used by this display.
    *
-   * @return \Drupal\Core\Url|null
-   *   The URL of the display, or NULL if there is no specific URL for it.
+   * @return string|false
+   *   The base path for this display, or FALSE if there is none.
    */
-  public function getUrl();
+  public function getPath();
 
   /**
    * Returns true if the display is being rendered in the current request.
diff --git a/src/Display/DisplayPluginBase.php b/src/Display/DisplayPluginBase.php
index f9553c4..e381749 100644
--- a/src/Display/DisplayPluginBase.php
+++ b/src/Display/DisplayPluginBase.php
@@ -5,7 +5,6 @@ namespace Drupal\search_api\Display;
 use Drupal\Core\Entity\EntityTypeManagerInterface;
 use Drupal\Core\Path\CurrentPathStack;
 use Drupal\Core\Plugin\PluginBase;
-use Drupal\Core\Url;
 use Symfony\Component\DependencyInjection\ContainerInterface;
 
 /**
@@ -134,12 +133,12 @@ abstract class DisplayPluginBase extends PluginBase implements DisplayInterface
   /**
    * {@inheritdoc}
    */
-  public function getUrl() {
+  public function getPath() {
     $plugin_definition = $this->getPluginDefinition();
-    if (!empty($plugin_definition['path'])) {
-      return Url::fromUserInput($plugin_definition['path']);
-    }
-    return NULL;
+     if (!empty($plugin_definition['path'])) {
+       return $plugin_definition['path'];
+     }
+    return FALSE;
   }
 
   /**
diff --git a/src/Plugin/search_api/display/ViewsBlock.php b/src/Plugin/search_api/display/ViewsBlock.php
index acfa87b..9b3733e 100644
--- a/src/Plugin/search_api/display/ViewsBlock.php
+++ b/src/Plugin/search_api/display/ViewsBlock.php
@@ -16,7 +16,7 @@ class ViewsBlock extends ViewsDisplayBase {
   /**
    * {@inheritdoc}
    */
-  public function getUrl() {
+  public function getPath() {
     // Blocks don't have a path, so don't return one.
     return NULL;
   }
diff --git a/src/Plugin/search_api/display/ViewsDisplayBase.php b/src/Plugin/search_api/display/ViewsDisplayBase.php
index ce470a9..097398b 100644
--- a/src/Plugin/search_api/display/ViewsDisplayBase.php
+++ b/src/Plugin/search_api/display/ViewsDisplayBase.php
@@ -33,4 +33,4 @@ abstract class ViewsDisplayBase extends DisplayPluginBase {
       ->load($plugin_definition['view_id']);
   }
 
-}
+    }
diff --git a/tests/src/Functional/ViewsTest.php b/tests/src/Functional/ViewsTest.php
index 73f3228..5355851 100644
--- a/tests/src/Functional/ViewsTest.php
+++ b/tests/src/Functional/ViewsTest.php
@@ -294,8 +294,8 @@ class ViewsTest extends SearchApiBrowserTestBase {
     $this->assertTrue(array_key_exists($display_id, $displays), 'A display plugin was created for the test view page display.');
     $this->assertTrue(array_key_exists('views_block:search_api_test_view__block_1', $displays), 'A display plugin was created for the test view block display.');
     $this->assertTrue(array_key_exists('views_rest:search_api_test_view__rest_export_1', $displays), 'A display plugin was created for the test view block display.');
-    $view_url = Url::fromUserInput('/search-api-test')->toString();
-    $this->assertEquals($view_url, $displays[$display_id]->getUrl()->toString(), 'Display returns the correct path.');
+    $view_url = '/search-api-test';
+    $this->assertEquals($view_url, $displays[$display_id]->getPath(), 'Display returns the correct path.');
     $this->assertEquals('database_search_index', $displays[$display_id]->getIndex()->id(), 'Display returns the correct search index.');
 
     $admin_user = $this->drupalCreateUser([
