Fix url generation in atom/rss