The first <link> element of the channel remains always the home page URL whatever path I put on Feed settings.
I think this is due in views_rss_views_fields.theme.inc at line 31:

  $vars['link'] = $base_url;

Instead, it should be:

  $link_display_id = $view->display_handler->get_link_display();
  if ($link_display_id && !empty($view->display[$link_display_id])) {
    $path = $view->display[$link_display_id]->handler->get_path();
  }

  if ($path) {
    $path = $view->get_url(NULL, $path);
    $url_options = array('absolute' => TRUE);
    if (!empty($view->exposed_raw_input)) {
      $url_options['query'] = $view->exposed_raw_input;
    }

    // Compare the link to the default home page; if it's the default home page, just use $base_url.
    if ($path == variable_get('site_frontpage', 'node')) {
      $path = '';
    }

    $vars['link'] = check_url(url($path, $url_options));
  }

Comments

maciej.zgadzaj’s picture

Status: Active » Closed (works as designed)

There is no bug here. Channel's <link> element definition in RSS 2.0 specification defines it explicitly as "The URL to the HTML website corresponding to the channel", also giving an example of "http://www.goupstate.com/". No mention of any path here.

Anyway, the new version of the module I am currently working on will include some heavy changes, amongst others an option to override each element of the feed, so this will allow you to change the link element as well if you really need to...