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.
Many browsers will parse the link tag on DocumentComplete and not reparse it later if it changes. So technically it may be updated, but the browser may not notice. You’ll have to test in different browsers.