diff --git a/server/tx_search.js b/server/tx_search.js index 0871088..ca3c580 100644 --- a/server/tx_search.js +++ b/server/tx_search.js @@ -77,9 +77,11 @@ async function fetchTx(freq, piCode, rdsPs) { return processData(cachedData[freq], piCode, rdsPs); } - const url = "https://maps.fmdx.org/api?freq=" + freq; + const url = "https://maps.fmdx.org/api/?freq=" + freq; - return fetch(url) + return fetch(url, { + redirect: 'manual' + }) .then(response => response.json()) .then(async (data) => { cachedData[freq] = data;