import { siteUrlSetting } from './instanceSettings';

export const rssTermsToUrl = (terms) => {
  const siteUrl = siteUrlSetting.get();
  const terms_as_GET_params = Object.keys(terms).map((k) => encodeURIComponent(k) + '=' + encodeURIComponent(terms[k])).join('&')
  return siteUrl+"feed.xml?"+terms_as_GET_params;
}

import { getSiteUrl } from './vulcan-lib/utils';

export const rssTermsToUrl = (terms) => {
  const siteUrl = getSiteUrl();
  const terms_as_GET_params = Object.keys(terms).map((k) => encodeURIComponent(k) + '=' + encodeURIComponent(terms[k])).join('&')
  return siteUrl+"feed.xml?"+terms_as_GET_params;
}

Fix a broken RSS link (missing slash)
Fix a broken RSS link (missing slash)
