diff --git a/src/services/Routes.php b/src/services/Routes.php
index <HASH>..<HASH> 100644
--- a/src/services/Routes.php
+++ b/src/services/Routes.php
@@ -435,8 +435,9 @@ class Routes extends Component
 
             // Iterate through the elements and grab their URLs
             foreach ($elements as $element) {
-                if (!empty($element->url) && !\in_array($element->url, $resultingUrls, true)) {
-                    $resultingUrls[] = $element->url;
+                if (!empty($element->uri) && !\in_array($element->uri, $resultingUrls, true)) {
+                    $uri = $this->normalizeUri($element->uri);
+                    $resultingUrls[] = $uri;
                 }
             }
Return the URI rather than the URL