diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/style/Rss.php b/core/modules/views/lib/Drupal/views/Plugin/views/style/Rss.php
index 0a6f8cb..1bf1d27 100644
--- a/core/modules/views/lib/Drupal/views/Plugin/views/style/Rss.php
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/style/Rss.php
@@ -38,7 +38,7 @@ public function attachTo($display_id, $path, $title) {
     }
     $url_options['absolute'] = TRUE;
 
-    $url = url($this->view->getUrl(NULL, $path), $url_options);
+    $url = url($this->view->getUrl(!empty($this->view->args) ? $this->view->args : NULL, $path), $url_options);
     if ($display->hasPath()) {
       if (empty($this->preview)) {
         $build['#attached']['drupal_add_feed'][] = array($url, $title);
diff --git a/core/modules/views/lib/Drupal/views/ViewExecutable.php b/core/modules/views/lib/Drupal/views/ViewExecutable.php
index 5eb82a6..47708fa 100644
--- a/core/modules/views/lib/Drupal/views/ViewExecutable.php
+++ b/core/modules/views/lib/Drupal/views/ViewExecutable.php
@@ -1506,6 +1506,8 @@ public function attachDisplays() {
     foreach ($this->display_handler->getAttachedDisplays() as $id) {
       // Create a clone for the attachments to manipulate. 'static' refers to the current class name.
       $cloned_view = new static($this->storage, $this->user);
+      // Copy over the arguments.
+      $cloned_view->setArguments($this->args);
       $this->displayHandlers->get($id)->attachTo($cloned_view, $this->current_display);
     }
     $this->is_attachment = FALSE;
