Is it possible to update the URL of an rss <link>
tag dynamically, so that when the RSS icon in the location bar is clicked, the browser will direct the user to the updated URL?
For example, using Jquery:
<link id="feed_url" rel="alternate" type="application/rss+xml" title="RSS" href="/feed" />
<script type="text/javascript">
$("#feed_url").attr("href", "/feed?foo=bar");
</script>
The user should now be redirected to /feed?foo=bar rather than /foo.
Note, the values in the query string are determined on the fly on the client-side so the URL must be updated through Javascript. I cannot determine these values on the server side.